toMap method
Creates a new ImageScale instance by applying a transformation function to the current width and height.
The mapper
function takes the current width and height as arguments
and should return a new ImageScale instance.
Implementation
Map<String,dynamic> toMap() {
return {
'width': width,
'height': height,
};
}