WiatagServer class

Annotations
  • @freezed

Constructors

WiatagServer({required String host, required int port, required String unitId, @Default('') String password, @Default(Duration(seconds: 30)) @DurationConverter() Duration commandListener, @Default(true) bool hasCommands})
const
factory
WiatagServer.fromJson(Map<String, dynamic> json)
factory

Properties

commandListener Duration
commandListener defines the time in seconds to check for commands. By default is 30 seconds.
no setterinherited
copyWith → $WiatagServerCopyWith<WiatagServer>
no setterinherited
hasCommands bool
hasCommands defines if the server has commands to check. By default is true.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
host String
host defines the host of the server. Check your platform (WIalon or Flespi) to get the right host.
no setterinherited
password String
password defines the password of the server. This password should be the password registered in the platform. By default is an empty string.
no setterinherited
port int
port defines the port of the server. Check your platform (WIalon or Flespi) to get the right port
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unitId String
unitId defines the unitId of the server. This unitId should be the IMEI, or ident in flespi. Also, this value depends of the value registered in the platform.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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