parseOffset function

Offset? parseOffset(
  1. Control control,
  2. String propName, [
  3. Offset? defaultValue
])

Implementation

Offset? parseOffset(Control control, String propName, [Offset? defaultValue]) {
  var v = control.attrString(propName, null);
  if (v == null) {
    return defaultValue;
  }

  final j1 = json.decode(v);
  return offsetFromJSON(j1, defaultValue);
}