Style.fromMap constructor

Style.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory Style.fromMap(Map<String, dynamic> map) {
  return Style(
    borderColor: map['borderColor']!,
    cornerRadius: map['cornerRadius']!,
    padding: map['padding']!,
    borderWidth: map['borderWidth']!,
    font: map['font']!,
    textAlignment: map['textAlignment']!,
    textColor: map['textColor']!,
    placeholderColor: map['placeholderColor']!,
    width: map['width']!,
    height: map['height']!,
    margin: map['margin']!,
    backgroundColor: map['backgroundColor']!,
    minWidth: map['minWidth']!,
    maxWidth: map['maxWidth']!,
    minHeight: map['minHeight']!,
    maxHeight: map['maxHeight']!
  );
}