DefaultUsagePrinter class

A default implementation of UsagePrinter.

Constructors

DefaultUsagePrinter({required TerminalAttributesFactory attributesFactory, required TextWrapper wrapper})

Properties

attributesFactory TerminalAttributesFactory
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wrapper TextWrapper
final

Methods

call(ArgumentSet args, UsageInfo info, UsageContext context, {required StringSink sink, required bool showShortUsage}) → void
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

create({TerminalAttributesFactory attributesFactory = defaultTerminalAttributesFactory, TextWrapper wrapper = defaultTextWrapper}) UsagePrinter