Formatters class

Formatter ist a collection of formatters.

By convention the instance name must be the name of the formatter string. E.g. if the string ist 'uppercase' then the instance in 'Formatter' must be named 'uppercase'

To add your own formatter follow the sample below @Directive class MyFormatter extends Formatter {

     // Your super cool formatter
     final TestFormatter test = new TestFormatter();
 }

 class MyFormatterModule extends Module {
     MyFormatterModule() {
         bind(Formatter, ,toImplementation: MyFormatter);
     }
 }

 main() {
     ...
       componentFactory().rootContext(Application).
          addModule(new StyleguideModule()).run()
             .then((final MaterialApplication application) {

           application.run();
     });

     ...
 }

HTML: or

...

Implemented types

Constructors

Formatters()

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

contains(String name) → bool
formatter(String name) Formatter
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited