Mobiles_programming/lib/data/repositories/api_interface.dart

8 lines
300 B
Dart
Raw Normal View History

2024-11-15 21:47:58 +04:00
import 'package:mobiles_labs_5th_semester/domain/models/game.dart';
import 'package:mobiles_labs_5th_semester/domain/models/page_of_games_home.dart';
typedef OnErrorCallback = void Function(String? error);
2024-11-15 21:47:58 +04:00
abstract class ApiInterface {
Future<PageOfGames?> loadData({OnErrorCallback? onError});
2024-11-15 21:47:58 +04:00
}