getFieldMeta<T> method

T getFieldMeta<T>(
  1. String name,
  2. T defaultValue
)

Get metadata from a field

Implementation

// ignore: avoid_shadowing_type_parameters
T getFieldMeta<T>(String name, T defaultValue) {
  if (field.cast.metaData == null || field.cast.metaData![name] == null) {
    return defaultValue;
  }
  return field.cast.metaData![name];
}