getStateFor method
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;
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
S getStateFor(Feature feature) => state[feature] ?? defaultState;