2
0
mirror of https://github.com/esiur/esiur-dart.git synced 2026-04-03 17:58:21 +00:00

null-safety

This commit is contained in:
2021-07-24 13:12:43 +03:00
parent 6be04c39ed
commit 614c6853e3
48 changed files with 3022 additions and 3320 deletions

View File

@@ -4,7 +4,7 @@ import 'ErrorType.dart';
class AsyncException implements Exception {
final ErrorType type;
final int code;
final String message;
final String? message;
AsyncException(this.type, this.code, this.message) {}
@@ -20,7 +20,7 @@ class AsyncException implements Exception {
": " +
(message ?? "");
else
return code.toString() + ": " + message;
return code.toString() + ": " + (message ?? '');
}
@override