BluesyText class

Inheritance

Constructors

BluesyText({@required String name, @required String key, double fontSize, TextAlign textAlign, Color color, FontWeight fontWeight, FontStyle fontStyle})

Properties

color Color
The color to use when painting the text.
final
fontSize double
The size of glyphs (in logical pixels) to use when painting the text.
final
fontStyle FontStyle
The typeface variant to use when drawing the letters (e.g., italics).
final
fontWeight FontWeight
The typeface thickness to use when painting the text (e.g., bold).
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
keys List<String>
The key strings assosciated to this widget
final, inherited
name String
Name of the widget to register to the Bluesy listener map
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
textAlign TextAlign
How the text should be aligned horizontally.
final

Methods

build(BuildContext context, void propertyValueSetter(String key, int value), Map<String, int> keyValueMap) Widget
Builder method for a Bluesy widget. You can pass an integer to the propertyValueSetter function provided. Doing so will send a key-value pair message to the paired bluetooth device, with the key being the keys string of the Bluesy widget.
override
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() → _BluesyWidgetState
Creates the mutable state for this widget at a given location in the tree. [...]
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toDiagnosticsNode({String name, DiagnosticsTreeStyle style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object. [...]
inherited
toStringDeep({String prefixLineOne = '', String prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants. [...]
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object. [...]
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
@nonVirtual, inherited