decode method
Read state from json-like object
Possible values are:
- Base DartType - bool, int, double, string, etc.
- List
- Map<String, DartType> - map of objects of base dart type, list or map
Implementation
@override
void decode(covariant Map<String, dynamic> state) {
value = Alignment(state['x'], state['y']);
}