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.
PatientApp-KKUMC/lib/models/Appointments/toDoCountProviderModel.dart

20 lines
540 B
Dart

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