toJson method

  1. @override
Map<String, dynamic>? toJson(
  1. MaterialStateProperty<double?>? object
)
override

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}),
  };
}