NeshanErrorCallback typedef
NeshanErrorCallback =
void Function(String message, Exception? exception, StackTrace? stackTrace)
Callback that is called when an error occurs.
message is the error message.
exception is the optional exception that caused the error.
stackTrace is the optional stack trace for debugging.
Implementation
typedef NeshanErrorCallback =
void Function(String message, Exception? exception, StackTrace? stackTrace);