MethodChannelSimData class
An implementation of SimDataPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- SimDataPlatform
- MethodChannelSimData
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkCellular(
{String host = 'www.apple.com', int port = 443, double timeoutSeconds = 5.0}) → Future< Map< String, dynamic> ?> -
Supported on iOS only.
Runs the passive (interface available) + active (data reachable) cellular checks.
Returns the raw map; the public API wraps it into CellularCheckResult.
override
-
getPlatformVersion(
) → Future< String?> -
Boiler-plate code
override
-
getSimData(
) → Future< String?> -
Supported only for Android!
Fetches the SIM data and returns List<SimDataModel>
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendSMS(
{required String phoneNumber, required String message, required int subId, int timeoutSeconds = 0}) → Future< bool?> -
Supported for both android and iOS
This requires the SEND_SMS permissions for android.
SMS is sent in the background for android and for iOS the plugin uses
MFMessageComposeViewControlleroverride -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited