parseNativeTemplateStyle function

NativeTemplateStyle? parseNativeTemplateStyle(
  1. ThemeData theme,
  2. Control control,
  3. String propName
)

Implementation

NativeTemplateStyle? parseNativeTemplateStyle(
    ThemeData theme, Control control, String propName) {
  dynamic j;
  var v = control.attrString(propName, null);
  if (v == null) return null;

  j = json.decode(v);
  return nativeTemplateStyleFromJson(theme, j);
}