forField static method

List<ChartJsonOptionSchema> forField(
  1. String fieldName, {
  2. String? containerPath,
})

Implementation

static List<ChartJsonOptionSchema> forField(
  String fieldName, {
  String? containerPath,
}) {
  final schemas = containerPath == null ? all : forContainer(containerPath);
  return [
    for (final schema in schemas)
      if (schema.supportsField(fieldName)) schema,
  ];
}