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({required Future tryFunction(), Map<dynamic, Future Function(Object e)>? catchKnownExceptions, Future catchUnknownExceptions(Object e)?, void finallyFunction()?})
→ Future
-
Asynchronous try and catch handler to reduce boilerplate
-
syncTryHandler({required dynamic tryFunction(), Map<dynamic, dynamic Function(Object e)>? catchKnownExceptions, dynamic catchUnknownExceptions(Object e)?, void finallyFunction()?})
→ dynamic
-
Synchronous try and catch handler to reduce boilerplate