toMap method

Map<String, dynamic> toMap()

Converts the style to a map for passing to the native platform.

Implementation

Map<String, dynamic> toMap() {
  return {
    if (buttonBackgroundColor != null)
      'buttonBackgroundColor': buttonBackgroundColor!.value,
    if (buttonTextColor != null) 'buttonTextColor': buttonTextColor!.value,
    if (buttonLabel != null) 'buttonLabel': buttonLabel,
    if (navigationBarTitle != null) 'navigationBarTitle': navigationBarTitle,
  };
}