parseWidgetStateEdgeInsets function
WidgetStateProperty<EdgeInsets?> ?
parseWidgetStateEdgeInsets(
- Control control,
- String propName, [
- EdgeInsets? defaultValue
Implementation
WidgetStateProperty<EdgeInsets?>? parseWidgetStateEdgeInsets(
Control control, String propName,
[EdgeInsets? defaultValue]) {
var v = control.attrString(propName, null);
if (v == null) {
return null;
}
return getWidgetStateProperty<EdgeInsets?>(
jsonDecode(v), (jv) => edgeInsetsFromJson(jv), defaultValue);
}