parseNativeTemplateTextStyle function

NativeTemplateTextStyle? parseNativeTemplateTextStyle(
  1. ThemeData theme,
  2. Control control,
  3. String propName
)

Implementation

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

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