toQuotedFieldPath method
Returns a quoted field path.
Because the Firestore REST-Api (used in the background) can't handle
attributes starting with numbers, e.g. 'foo.0bar', we need to escape the
path-parts by using 'ยด': 'foo
.0bar
'.
Implementation
String? toQuotedFieldPath(String? fieldPath) =>
fieldPath?.split('.').map((f) => '`$f`').join('.');