MobileDataState class
Represents the state of mobile data and SIM information.
Constructors
- MobileDataState({required bool isMobileDataEnabled, String? networkOperator, String? networkType})
- Constructs a MobileDataState object.
-
MobileDataState.fromMap(Map<
String, dynamic> map) -
Creates a MobileDataState from a map, typically received from platform code.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMobileDataEnabled → bool
-
Indicates if mobile data is enabled.
final
- networkOperator → String?
-
The name of the network operator (e.g., Airtel, Jio).
final
- networkType → String?
-
The network type (e.g., 4G, 5G).
final
- 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