refactor: Enable more strict lints
This commit is contained in:
parent
f797bce8d0
commit
28af7bb0c7
65 changed files with 170 additions and 146 deletions
|
|
@ -22,14 +22,14 @@ class ErrorReporter {
|
|||
'HandshakeException',
|
||||
};
|
||||
|
||||
void onErrorCallback(Object error, [StackTrace? stackTrace]) {
|
||||
Future<void> onErrorCallback(Object error, [StackTrace? stackTrace]) async {
|
||||
if (ingoredTypes.contains(error.runtimeType.toString())) return;
|
||||
Logs().e(message ?? 'Error caught', error, stackTrace);
|
||||
final text = '$error\n${stackTrace ?? ''}';
|
||||
return _onErrorCallback(text);
|
||||
}
|
||||
|
||||
void _onErrorCallback(String text) async {
|
||||
Future<void> _onErrorCallback(String text) async {
|
||||
await showAdaptiveDialog(
|
||||
context: context!,
|
||||
builder: (context) => AlertDialog.adaptive(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue