getStateFor method

S getStateFor(
  1. Feature feature
)

This is the method called by other classes in the app, specially the FeatureWidget, to obtain the current state of any feature in the map

Implementation

S getStateFor(Feature feature) => state[feature] ?? defaultState;