toJson method
Implementation
@override
Map<String, dynamic>? toJson(MaterialStateProperty<double?>? object) {
if (object == null) return null;
return {
'disabled': object.resolve({MaterialState.disabled}),
'dragged': object.resolve({MaterialState.dragged}),
'empty': object.resolve({}),
'error': object.resolve({MaterialState.error}),
'focused': object.resolve({MaterialState.focused}),
'hovered': object.resolve({MaterialState.hovered}),
'pressed': object.resolve({MaterialState.pressed}),
'selected': object.resolve({MaterialState.selected}),
};
}