You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
HMG_Patient_App/lib/models/Appointments/toDoCountProviderModel.dart

24 lines
691 B
Dart

import 'package:flutter/cupertino.dart';
class ToDoCountProviderModel with ChangeNotifier {
int _count;
2 years ago
int _ancillaryCount;
4 years ago
String _notificationsCount;
bool _isShowBadge = false;
int get count => _count == null ? 0 : _count;
2 years ago
int get ancillaryCount => _ancillaryCount == null ? 0 : _ancillaryCount;
String get notificationsCount => _notificationsCount == null ? "0" : _notificationsCount;
4 years ago
bool get isShowBadge => _isShowBadge;
2 years ago
void setState(int count, int ancillaryCount, bool isShowBadge, String notifCount) {
_count = count;
_isShowBadge = isShowBadge;
4 years ago
_notificationsCount = notifCount;
2 years ago
_ancillaryCount = ancillaryCount;
notifyListeners();
}
}