PIbd-31_MasenkinMS_PMU/lib/data/repositories/api_interface.dart

8 lines
203 B
Dart
Raw Normal View History

2024-09-30 22:15:55 +04:00
import 'package:pmu_labworks/domain/models/home.dart';
2024-09-30 18:24:51 +04:00
typedef OnErrorCallback = void Function(String? error);
abstract class ApiInterface {
2024-09-30 22:15:55 +04:00
Future<HomeData?> loadData({OnErrorCallback? onError});
2024-09-30 18:24:51 +04:00
}