AppChangeEvent class

Represents an event when an app's state changes on the device.

This includes installations, removals, and updates.

Constructors

AppChangeEvent({String? packageName, AppChangeType? type, bool? isReplacing})
Creates an AppChangeEvent with the specified properties.
const
AppChangeEvent.fromMap(Map<String, Object?> m)
Creates an AppChangeEvent 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 → AppChangeType?
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 AppChangeEvent to a map representation.
toString() → String
A string representation of this object.
inherited

Operators

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