toMap method

Map<String, dynamic> toMap()

Converts the action to a map for platform channel communication.

Implementation

Map<String, dynamic> toMap() {
  return {
    'title': title,
    'style': style.index,
  };
}