MetaFormContext class
Tracks metadata that helps render meta forms. Things like labels, placeholders, types, options, ignored fields, etc.
- Mixed in types
-
- LoggingMixin
Constructors
-
MetaFormContext(BuildContext context, {required MBaseModel? subject, Map<
String, dynamic> ? scope, required MSchemaRef ref, IMSchemaDefinition? schema, MetadataOverrides? overrides, JsonPath? embedPath, List<MetaPropertyHandler> ? extraHandlers}) -
MetaFormContext.embedded(BuildContext context, {required MModel subject, Map<
String, dynamic> ? scope, required MSchemaRef ref, IMSchemaDefinition? schema, MetadataOverrides? overrides, List<MetaPropertyHandler> ? extraHandlers, required JsonPath embedPath}) - MetaFormContext.empty(BuildContext context, MSchemaRef emptyRef)
-
MetaFormContext.ofModelForm(BuildContext context, {required MModelForm<
MBaseModel> controller, required FutureOr<IMEntityDefinition> definition, Map<String, dynamic> ? scope, MetadataOverrides? overrides, List<MetaPropertyHandler> ? extraHandlers, JsonPath? embedPath}) -
factory
Properties
- context → BuildContext
-
final
- embedPath → JsonPath?
-
final
-
extraHandlers
→ List<
IMetaPropertyHandler> -
final
-
handledPaths
→ Iterable<
JsonPath> -
no setter
- handlers ↔ MetaFormResult?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmbed → bool
-
no setteroverride
- isLoaded → bool
-
no setteroverride
-
loaded
→ Future<
IMSchemaDefinition> -
no setter
- log → Logger
-
no setterinherited
- loggerName → String
-
no setterinherited
- overrides → MetadataOverrides
-
final
-
properties
→ Map<
JsonPath, IMSchemaProperty> ? -
no setter
- ref → MSchemaRef
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- schema ↔ IMSchemaDefinition
-
getter/setter pairoverride-getter
-
scope
→ Map<
String, dynamic> -
final
- subject → MBaseModel?
-
final
Methods
-
checkLoaded<
T> (T invoke()) → T -
copyWith(
{JsonPath? embedPath, MModel? subject, MetaFormResult? handlers, MetaPropertyHandler? renderer, IMSchemaDefinition? schema, Map< String, dynamic> ? scope, MetadataOverrides? overrides, FormController? controller, List<MetaPropertyHandler> ? extraHandlers}) → MetaFormContext -
getHandler(
JsonPath jsonPath) → HandledPaths? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
path(
JsonPath basePath, JsonPath path) → MetaFormFieldContext -
prop(
IMSchemaProperty prop) → IMetaFormFieldContext -
override
-
relPath(
JsonPath fieldPath) → MetaFormFieldContext -
toString(
) → String -
A string representation of this object.
inherited
-
withOverrides(
MetadataOverrides? overrides) → MetaFormContext
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited