_flutterfire_internals/_flutterfire_internals library
Extensions
- EventChannelExtension on EventChannel
- A custom EventChannel with default error handling logic.
- ObjectX on T?
- An extension that adds utilities for safely casting objects
Functions
-
convertPlatformExceptionToFirebaseException(
Object exception, StackTrace rawStackTrace, {required String plugin}) → Never - Catches a PlatformException and returns an Exception.
-
guardWebExceptions<
R> (R cb(), {required String plugin, required String codeParser(String), String messageParser(String code, String message)?}) → R - Will return a FirebaseException from a thrown web error. Any other errors will be propagated as normal.
-
platformExceptionToFirebaseException(
PlatformException platformException, {required String plugin}) → FirebaseException - Converts a PlatformException into a FirebaseException.