setters method

  1. @override
Map<String, Function> setters()
override

Implementation

@override
Map<String, Function> setters() => {
      'backgroundColor': (value) => backgroundColor = Utils.getColor(value),
      'textColor': (value) => textColor = Utils.getColor(value),
      'borderRadius': (value) =>
          borderRadius = Utils.getDouble(value, fallback: 20.0),
      'textStyle': (value) => textStyle = Utils.getTextStyle(value),
      'padding': (value) => padding = Utils.getInsets(value,
          fallback: const EdgeInsets.symmetric(horizontal: 16, vertical: 12)),
      'margin': (value) => margin = Utils.getInsets(value,
          fallback: const EdgeInsets.symmetric(vertical: 4)),
    };