FlutterDnd class

Constructors

FlutterDnd()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

isNotificationPolicyAccessGranted Future<bool?>
Check the application has access to change the DND settings
no setter

Static Methods

getCurrentInterruptionFilter() Future<int?>
Returns currently applied notification filter
getFilterName(int filter) String
Returns Filter name from the filter
gotoPolicySettings() → void
Takes to DND system settings. Where the application gains access to change the DND settings.
setInterruptionFilter(int filter) Future<bool?>
Set new interruption filter

Constants

INTERRUPTION_FILTER_ALARMS → const int
Allow alarm notifications.
INTERRUPTION_FILTER_ALL → const int
No notifications are suppressed.
INTERRUPTION_FILTER_NONE → const int
Suppress all notifications. (Turn off DND)
INTERRUPTION_FILTER_PRIORITY → const int
Allow priority notifications.
INTERRUPTION_FILTER_UNKNOWN → const int
Unknown filter