path method

MetaFormFieldContext path(
  1. JsonPath basePath,
  2. JsonPath path
)

Implementation

MetaFormFieldContext path(JsonPath basePath, JsonPath path) {
  final fullPath = (basePath + path);
//    nullPointer("No property found at $fullPath - found ${properties.keys}");
  return checkLoaded(() {
    var propFieldConfig = this.overrides.formConfig![fullPath] ?? [];
    return MetaFormFieldContext(
      form: this,
      fullPath: fullPath,
      formConfig: propFieldConfig,
      renderer: handlers!.get(embedPath, fullPath),
      property: properties![fullPath] ??
          IMSchemaProperty.of(
            type: "stringSchema",
            path: "$fullPath",
            uri: Definitions.titleField.uri.toUri(),
            baseCode: Definitions.titleField.baseCode,
            isRequired:
                propFieldConfig.any((element) => element.isRequired == true),
            label: "$fullPath",
          ),
    );
  });
}