SSHKeepAlive class

A wrapper around Timer that calls ping every interval, and can be started or stopped idempotently.

Constructors

SSHKeepAlive.new({required Future ping(), Duration interval = const Duration(seconds: 10)})

Properties

hashCode int
The hash code for this object.
no setterinherited
interval Duration
final
ping Future Function()
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() → void
stop() → void
toString() String
A string representation of this object.
inherited

Operators

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