aurcache/frontend/lib/providers/api/BaseProvider.dart

14 lines
261 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
abstract class BaseProvider<T, DTO> with ChangeNotifier {
late Future<T> data;
DTO? dto;
loadFuture(context, {DTO? dto});
refresh(context) {
loadFuture(context, dto: this.dto);
notifyListeners();
}
}