FieldPath.fromArgument constructor

FieldPath.fromArgument(
  1. FieldMask fieldMask
)

Implementation

factory FieldPath.fromArgument(FieldMask fieldMask) {
  return switch (fieldMask) {
    _FieldPathFieldMask() => fieldMask.fieldPath,
    _StringFieldMask() => FieldPath(fieldMask.path.split('.').toList()),
  };
}