LineInfo class

Info about a GPIO line. Also contains the line configuration.

Annotations
  • @immutable

Constructors

LineInfo({String? name, String? consumer, required LineDirection direction, OutputMode? outputMode, Bias? bias, required ActiveState activeState, required bool isUsed, required bool isRequested})
const

Properties

activeState ActiveState
The active state of the GPIO line.
final
bias Bias?
The bias of the line.
final
consumer String?
A label given to the line by the application currently using this line, ideally describing what the line is used for right now.
final
direction LineDirection
The direction of the line.
final
hashCode int
The hash code for this object.
no setterinherited
isFree bool
no setter
isRequested bool
Whether the line is requested / owned by this application.
final
isUsed bool
Whether the line is currently used by any application (including this one).
final
name String?
The name (determined by the driver or device tree) of this line.
final
outputMode OutputMode?
The output mode of the line.
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
toString() String
A string representation of this object.
override

Operators

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