use common analysis options

This commit is contained in:
Salvatore Giordano
2021-05-06 11:48:26 +02:00
parent ba1ab4aed8
commit 18ce268e48
11 changed files with 16 additions and 446 deletions
@@ -357,9 +357,9 @@ class StreamChannelState extends State<StreamChannel> {
if (snapshot.hasError) {
var message = snapshot.error.toString();
if (snapshot.error is DioError) {
final dioError = snapshot.error as DioError;
if (dioError.type == DioErrorType.response) {
message = dioError.message;
final dioError = snapshot.error as DioError?;
if (dioError?.type == DioErrorType.response) {
message = dioError!.message;
} else {
message = 'Check your connection and retry';
}