Bugfixes, some visual updates

This commit is contained in:
Anton Stubenbord
2022-11-15 01:24:26 +01:00
parent d77b08e3b1
commit 7fac53522a
12 changed files with 99 additions and 69 deletions

View File

@@ -24,7 +24,7 @@ Future<T> getSingleResult<T>(
jsonDecode(utf8.decode(response.bodyBytes)) as JSON,
);
}
return Future.error(errorCode);
throw ErrorMessage(errorCode);
}
Future<List<T>> getCollection<T>(
@@ -52,7 +52,7 @@ Future<List<T>> getCollection<T>(
}
}
}
return Future.error(errorCode);
throw ErrorMessage(errorCode);
}
List<T> _collectionFromJson<T>(