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
|
|
|
}
|