flutter_dev_utils library

Classes

CallerLogger
Custom Logger which prints the caller of the Logger.log() method.
TypeFilter
Creates a filter which allows logs to be selectively ignored based on the caller Type so that you can compartmentalise printed logs. To be used in conjunction with a Logger.

Functions

asyncTryHandler<T>({required Future<T> tryFunction(), Map<dynamic, Future<T> Function(Object e)>? catchKnownExceptions, Future<T> catchUnknownExceptions(Object e)?, void finallyFunction()?}) Future<T>
Asynchronous try and catch handler to reduce boilerplate
syncTryHandler<T>({required T tryFunction(), Map<dynamic, T Function(Object e)>? catchKnownExceptions, T catchUnknownExceptions(Object e)?, void finallyFunction()?}) → T
Synchronous try and catch handler to reduce boilerplate