toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'width': width,
    'height': height,
    'backgroundColor': backgroundColor?.value,
    'titleLabelTextColor': titleLabelTextColor?.value,
    'titleLabelFont': titleLabelFont?.toMap(),
    'cornerRadius': cornerRadius,
    'shadowRadius': shadowRadius,
    'shadowOpacity': shadowOpacity,
    'shadowOffset': shadowOffset?.toMap(),
    'shadowColor': shadowColor?.value,
  };
}