InactivityDetector class Null safety
A component that allows to execute a callback onInactivityDetected when no activity has been detected on the child component after a the set inactivityTimeInMinutes.
Constructors
-
InactivityDetector({dynamic key, required dynamic child, required InactivityCallback onInactivityDetected, required Future<
int> inactivityTimeInMinutes}) -
const
Properties
- child → dynamic
-
The child on which the inactivity will be detected
final
- hashCode → int
-
The hash code for this object.
read-only, inherited
-
inactivityTimeInMinutes
→ Future<
int> -
The timeout in minutes after which no activity is triggered
final
- onInactivityDetected → InactivityCallback
-
The callback to be executed when no activity is detected
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
createState(
) → dynamic -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited