AFCommandOutput class

Used to achieve nicely formatted output for commands.

Constructors

AFCommandOutput({bool colorize = true})

Properties

colorize bool
final
cols List<AFCommandOutputColumn>
final
hashCode int
The hash code for this object.
no setterinherited
nIndent int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

endLine() → void
indent() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
outdent() → void
startColumn({AFOutputAlignment? alignment, Styles? color, Styles? fontStyle, int? width, String fill = " "}) → void
toString() String
A string representation of this object.
inherited
write(String output) → void
writeErrorLine(String error) → void
writeLine(String output) → void
writeThreeColumns({required String col1, required String col2, String? col3, int width1 = 15, int? width2, int? width3, Styles? color1 = Styles.GREEN, Styles? color2, Styles? color3, AFOutputAlignment? align1 = AFOutputAlignment.alignRight, AFOutputAlignment? align2 = AFOutputAlignment.alignLeft, AFOutputAlignment? align3 = AFOutputAlignment.alignLeft}) → void
writeTwoColumns({required String col1, required String col2, int width1 = 15, int? width2, Styles? color1 = Styles.GREEN, Styles? color2, AFOutputAlignment? align1 = AFOutputAlignment.alignRight, AFOutputAlignment? align2 = AFOutputAlignment.alignLeft}) → void
writeTwoColumnsError({String col1 = "error ", required String col2, int width1 = 15, int? width2, Styles? color1 = Styles.RED, Styles? color2, AFOutputAlignment? align1 = AFOutputAlignment.alignRight, AFOutputAlignment? align2 = AFOutputAlignment.alignLeft}) → void
writeTwoColumnsWarning({String col1 = "warning", required String col2, int width1 = 15, int? width2, Styles? color1 = Styles.YELLOW, Styles? color2, AFOutputAlignment? align1 = AFOutputAlignment.alignRight, AFOutputAlignment? align2 = AFOutputAlignment.alignLeft}) → void

Operators

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