MSchemaForm<T extends MBaseModel> constructor
MSchemaForm<T extends MBaseModel> (
- BuildContext context,
- T model,
- IMSchemaDefinition? definition, {
- Map<
JsonPath, FormFieldValidator> ? validators, - MSchemaRef? mtype,
Implementation
MSchemaForm(
BuildContext context,
T model,
IMSchemaDefinition? definition, {
Map<JsonPath, FormFieldValidator>? validators,
MSchemaRef? mtype,
}) : definition =
(definition ?? (mtype ?? model.mtype).getMSchemaOrNull(context))
.asEntitySchema(),
super(
context,
model,
mtype: mtype ??
(definition ?? (mtype ?? model.mtype).getMSchemaOrNull(context))
.asEntitySchema()
.schemaRef!,
validators: validators,
);