NetworkInfo constructor

NetworkInfo({
  1. String? type,
  2. String? ssid,
  3. String? security,
  4. int? signal,
  5. bool? connected,
  6. String? lastError,
})

Implementation

factory NetworkInfo({
  $core.String? type,
  $core.String? ssid,
  $core.String? security,
  $core.int? signal,
  $core.bool? connected,
  $core.String? lastError,
}) {
  final $result = create();
  if (type != null) {
    $result.type = type;
  }
  if (ssid != null) {
    $result.ssid = ssid;
  }
  if (security != null) {
    $result.security = security;
  }
  if (signal != null) {
    $result.signal = signal;
  }
  if (connected != null) {
    $result.connected = connected;
  }
  if (lastError != null) {
    $result.lastError = lastError;
  }
  return $result;
}