MSchemaForm<T extends MBaseModel> constructor

MSchemaForm<T extends MBaseModel>(
  1. BuildContext context,
  2. T model,
  3. IMSchemaDefinition? definition, {
  4. Map<JsonPath, FormFieldValidator>? validators,
  5. 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,
      );