AndroidAppChangeEvent class
Represents an event when an app's state changes on the device.
This includes installations, removals, and updates.
Constructors
- AndroidAppChangeEvent({String? packageName, AndroidAppChangeType? type, bool? isReplacing})
-
Creates an AndroidAppChangeEvent with the specified properties.
const
-
AndroidAppChangeEvent.fromMap(Map<
String, Object?> m) -
Creates an AndroidAppChangeEvent from a map of key-value pairs.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isReplacing → bool?
-
Whether this change is part of a replacement operation (e.g., app update).
final
- packageName → String?
-
The package name of the app that changed (e.g., 'com.example.app').
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → AndroidAppChangeType?
-
The type of change that occurred to the app.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> - Converts this AndroidAppChangeEvent to a map representation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited