owntracks-viewer/lib/refresh_cubit.dart

10 lines
196 B
Dart
Raw Normal View History

import 'package:flutter_bloc/flutter_bloc.dart';
class RefreshCubit extends Cubit<DateTime> {
RefreshCubit() : super(DateTime.now());
void triggerRefresh() {
emit(DateTime.now());
}
}