MACAddress class

Constructors

MACAddress(String address, {String delimiter = ':'})
Creates a new MACAddress instance with the given address. The MAC address is validated on construction and will throw an exception on an invalid address.
factory

Properties

address String
final
bytes List<int>
final
delimiter String
final
hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

validate(String? address, {String delimiter = ':'}) → ({Object? error, bool state})
Validate that a MAC address is correctly formatted by matching the MAC address against a regular expression. By default the delimiter between each hex octet is expected to be a colon (:).