toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    if (toolbarColor != null) 'toolbarColor': toolbarColor,
    if (secondaryToolbarColor != null)
      'secondaryToolbarColor': secondaryToolbarColor,
    if (navigationBarColor != null) 'navigationBarColor': navigationBarColor,
    if (navigationBarDividerColor != null)
      'navigationBarDividerColor': navigationBarDividerColor,
    if (backgroundColor != null) 'backgroundColor': backgroundColor,
  };
}