2024-10-22 08:55:54 +04:00
|
|
|
|
2024-10-30 22:39:56 +04:00
|
|
|
import '../domain/models/home.dart';
|
|
|
|
|
|
|
|
typedef OnErrorCallback = void Function(String? error);
|
2024-10-22 08:55:54 +04:00
|
|
|
|
|
|
|
abstract class ApiInterface{
|
2024-10-30 22:39:56 +04:00
|
|
|
Future<HomeData?> loadData({OnErrorCallback? onError});
|
2024-10-22 08:55:54 +04:00
|
|
|
}
|