MetadataOverrides.coerced constructor
MetadataOverrides.coerced({
- String? label,
- String? editLabel,
- String? pluralLabel,
- bool? isDisabled,
- String? addLabel,
- String? category,
- Map<
JsonPath, List< ? formConfig,MetaFieldConfig> > - Map<
JsonPath, MetaDateFormatter> ? metaDateFormatters, - Set<
JsonPath> ? ignoredPaths = const {}, - Map<
dynamic, String> ? labels, - Map<
dynamic, String> ? placeholders, - Iterable? sortOrder,
Implementation
MetadataOverrides.coerced(
{this.label,
this.editLabel,
this.pluralLabel,
this.isDisabled,
this.addLabel,
this.category,
this.formConfig,
this.metaDateFormatters,
this.ignoredPaths = const {},
Map<dynamic, String>? labels,
Map<dynamic, String>? placeholders,
Iterable<dynamic>? sortOrder})
: labels = labels?.map((k, v) => MapEntry(JsonPath.of(k), v)) ?? {},
sortOrder = sortOrder?.map((p) => JsonPath.of(p)).toList() ?? const [],
placeholders =
placeholders?.map((k, v) => MapEntry(JsonPath.of(k), v)) ?? {};