API Reference 0.3.24dart_web_toolkit_textPassthroughParser

PassthroughParser class

A no-op String parser.

class PassthroughParser implements Parser<String> {

 static PassthroughParser _instance;

 /**
  * Returns the instance of the no-op renderer.
  */
 factory PassthroughParser.instance() {
   if (_instance == null) {
     _instance = new PassthroughParser();
   }
   return _instance;
 }

 PassthroughParser();

 String parse(String text) {
   return text;
 }
}

Implements

Parser<String>

Constructors

new PassthroughParser() #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
PassthroughParser();

factory PassthroughParser.instance() #

Returns the instance of the no-op renderer.

factory PassthroughParser.instance() {
 if (_instance == null) {
   _instance = new PassthroughParser();
 }
 return _instance;
}

Methods

String parse(String text) #

String parse(String text) {
 return text;
}