FloatStyleMethodProp constructor

FloatStyleMethodProp(
  1. String type, [
  2. double defaultValue = undefined
])

Implementation

FloatStyleMethodProp(String type, [double defaultValue = undefined])
    : super(((consumer, value) {
  if (consumer is StyleNode && value is double) {
    consumer.setPropFloat(type, value);
  }
}), defaultValue);