toMap method

  1. @override
Map<String, dynamic> toMap({
  1. double? width,
})
override

Implementation

@override
Map<String, dynamic> toMap({double? width}) {
  return {
    'type': 'parent',
    'height': height,
    'width': width,
    'backgroundColor': backgroundColor,
    'children': children.map((child) => child.toMap()).toList(),
  };
}