toMap method

  1. @override
Map<String, dynamic> toMap()
override

Convert all the class data to a Map that will be used in the platform channel communication

Implementation

@override
Map<String, dynamic> toMap() => {
      'touch_bar': {
        'children': children.map((item) => item.toMap()).toList(),
      }
    };