import 'package:flutter/cupertino.dart';

class ToDoCountProviderModel with ChangeNotifier {

  int? _count;
  int? _ancillaryCount;
  String? _notificationsCount;
  bool? _isShowBadge = false;


  int? get count => _count == null ? 0 : _count!;
  int? get ancillaryCount => _ancillaryCount == null ? 0 : _ancillaryCount;

  String? get notificationsCount => _notificationsCount == null ? "0" : _notificationsCount;

  bool get isShowBadge => _isShowBadge!;

  void setState(int? count, int? ancillaryCount, bool? isShowBadge, String? notifCount) {
    _count = count;
    _isShowBadge = isShowBadge;
    _notificationsCount = notifCount;
    _ancillaryCount = ancillaryCount;
    notifyListeners();
  }
}