getTweenableAccessors method
Returns a map of properties that can be animated, in this case 'x' and 'y'. 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],
};
}