FieldPath constructor

FieldPath(
  1. List<String> components
)

Creates a new FieldPath.

Implementation

FieldPath(this.components)
    : assert(components.isNotEmpty),
      assert(
        components.where((component) => component.isEmpty).isEmpty,
        'Expected all FieldPath components to be non-null or non-empty strings.',
      );