aurcache/frontend/lib/providers/BaseProvider.dart
2024-02-11 23:05:39 +01:00

14 lines
261 B
Dart

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();
}
}