CellularCheckResult.fromMap constructor

CellularCheckResult.fromMap(
  1. Map<String, dynamic> map
)

Parses the raw map returned by the platform channel into a CellularCheckResult.

Implementation

factory CellularCheckResult.fromMap(Map<String, dynamic> map) =>
    CellularCheckResult(
      cellularInterfaceAvailable:
      map['cellularInterfaceAvailable'] as bool? ?? false,
      cellularDataReachable: map['cellularDataReachable'] as bool? ?? false,
    );