TomSecretsServicePairing class final
A conversation with the service in its pairing mode.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< int> - Ends the conversation; the service ends too. Its exit code.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
received(
) → Future< TomSecretsPairingReport> - Waits for the pairing: what it gave. Throws TomSecretsPairingModeException (the service has ended then).
-
setUp(
String password) → Future< String> -
Sets the machine up with
password: the bootstrap file written. Throws TomSecretsPairingModeException; after tomSecretsPairingWrongPassword another password may be sent. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
start(
{required String executable, List< String> arguments = const [], required TomSecretsPairingHandover handover, Map<String, String> ? environment}) → Future<TomSecretsServicePairing> -
Starts
executable(witharguments) and hands ithandover.