parseWidgetStateEdgeInsets function

WidgetStateProperty<EdgeInsets?>? parseWidgetStateEdgeInsets(
  1. Control control,
  2. String propName, [
  3. 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);
}