PhoneState class

This class is used to store the current phone state

To listen to the phone state change, use the stream getter

Constructors

PhoneState.nothing()
This method allows you to create a PhoneState object with the status PhoneStateStatus.NOTHING
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
number String?
The number of the caller. NOT WORKING ON IOS
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status PhoneStateStatus
The current phone state
getter/setter pair

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

stream Stream<PhoneState>
This method allows you to have a stream of the system phone state change
no setter