makeGetRequest method
Implementation
TaskEither<String, Response<List<dynamic>>> makeGetRequest(
String path, {
Map<String, dynamic>? data,
}) =>
TaskEither<String, Response<List<dynamic>>>.tryCatch(
data == null
? () async => dio.get(
path,
)
: () async => dio.get(
path,
data: data,
),
(Object error, StackTrace stackTrace) => error.toString(),
);