PrivAdbTcpResult class abstract

Outcome of an ADB TCP control command (adb tcpip, stop, restart).

Available extensions
Annotations
  • @freezed

Constructors

PrivAdbTcpResult({required int port, @Default.new('') String outputText, @Default.new('') String deviceName, @Default.new('') String publicKeyFingerprint})
const
factory
PrivAdbTcpResult.fromMap(Map map)
factory

Properties

copyWith → $PrivAdbTcpResultCopyWith<PrivAdbTcpResult>
Create a copy of PrivAdbTcpResult with the given fields replaced by the non-null parameter values.
no setterinherited
deviceName → String
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
outputText → String
no setterinherited
port → int
no setterinherited
publicKeyFingerprint → String
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_PrivAdbTcpResult value)) → TResult

Available on PrivAdbTcpResult, provided by the PrivAdbTcpResultPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_PrivAdbTcpResult value)?) → TResult?

Available on PrivAdbTcpResult, provided by the PrivAdbTcpResultPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_PrivAdbTcpResult value)?, {required TResult orElse()}) → TResult

Available on PrivAdbTcpResult, provided by the PrivAdbTcpResultPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(int port, String outputText, String deviceName, String publicKeyFingerprint)?, {required TResult orElse()}) → TResult

Available on PrivAdbTcpResult, provided by the PrivAdbTcpResultPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
when<TResult extends Object?>(TResult $default(int port, String outputText, String deviceName, String publicKeyFingerprint)) → TResult

Available on PrivAdbTcpResult, provided by the PrivAdbTcpResultPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>(TResult? $default(int port, String outputText, String deviceName, String publicKeyFingerprint)?) → TResult?

Available on PrivAdbTcpResult, provided by the PrivAdbTcpResultPatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) → bool
The equality operator.
inherited