useErrorStack method

dynamic useErrorStack({
  1. ErrorStackLogLevel level = ErrorStackLogLevel.verbose,
  2. Widget errorWidget(
    1. FlutterErrorDetails errorDetails
    )?,
})

Use ErrorStack level is the log level for ErrorStack errorWidget is a custom error widget

Implementation

useErrorStack(
    {ErrorStackLogLevel level = ErrorStackLogLevel.verbose,
    Widget Function(FlutterErrorDetails errorDetails)? errorWidget}) {
  _enableErrorStack = true;
  _errorStackLogLevel = level;
  _errorStackErrorWidget = errorWidget;
}