toggleMethodForBoolValues property

bool toggleMethodForBoolValues
final

Indicates whether toggle methods should be created for bool values. Default value is true

Example output if it is set to true:

  bool get notification => _helper.getBool(_keys.notification, true);
  set notification(bool val) => _helper.setBool(_keys.notification, val);
  bool toggleNotification() => _helper.toggleBool(_keys.notification, true); // this line

Implementation

final bool toggleMethodForBoolValues;