StringStyleMethodProp constructor

StringStyleMethodProp(
  1. String type, [
  2. String defaultValue = ""
])

Implementation

StringStyleMethodProp(String type, [String defaultValue = ""])
    : super(((consumer, value) {
  if (consumer is StyleNode) {
    consumer.setPropString(type, value?.toString());
  }
}), defaultValue);