toMap method

Map<String, dynamic> toMap()

Converts to a map for method channel communication.

Implementation

Map<String, dynamic> toMap() {
  return {
    'filter': filter.name,
  };
}