getTweenableAccessors method
Returns a map of properties that can be animated, in this case 'x', 'y', 'width' and 'height'. Each property maps to a list of two functions: one to get the current value of the property, and another to set the value of the property.
Implementation
@override
Map<String, List<Function>> getTweenableAccessors() {
return {
'x': [() => value.x, (v) => value.x = v],
'y': [() => value.y, (v) => value.y = v],
'width': [() => value.width, (v) => value.width = v],
'height': [() => value.height, (v) => value.height = v],
};
}