import 'package:leonteva_pmu/domain/models/home.dart'; typedef OnErrorCallback = void Function(String? error); abstract class ApiInterface { Future loadData({ OnErrorCallback? onError, String? q, int page = 1, int pageSize = 25, }); }