whereKeyStartsWithOrFail method
Implementation
@override
Map<String, dynamic> whereKeyStartsWithOrFail(String prefix,
{Exception Function()? onFail}) {
final entries = whereKeyStartsWith(prefix);
return entries.isEmpty
? onFail != null
? throw onFail()
: throw Exception('No keys found')
: entries;
}