MaterialTranslate class




MaterialTranslate.fromElement(HtmlElement element, Container iocContainer)


value ↔ String
read / write
attributes → Map<String, String>
read-only, inherited
classes CssClassSet
read-only, inherited
element Element
This is the element witch has the mdl-js- class
final, inherited
eventStreams → List<StreamSubscription>
Collects all the registered Events - helpful for downgrading an element Sample: eventStreams.add(input.onFocus.listen( _onFocus));
final, inherited
hashCode → int
The hash code for this object.
read-only, inherited
hub Element
Main element. If there is no child element like in mdl-button hub = button = element [...]
read-only, inherited
injector Container
final, inherited
onClick ElementStream<MouseEvent>
read-only, inherited
onInput ElementStream<Event>
read-only, inherited
parent MdlComponent
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
visualDebugging ↔ bool
If an error occurs in the Component and {visualDebugging} is true a red border will be drawn around the Component {visualDebugging} is set in {_upgradeElement}
read / write, inherited


reset() → String
Resets text in the corresponding Element to the translation and returns the value set for this Element
attached() → void
Called after DomRenderer has added this component to the DOM or if MdlComponentHandler hast upgrade the component and it's already in the DOM! [...]
cancelStream(StreamSubscription stream) → void
Helper for cancelling streams - checks for null
downgrade() → void
Cancels all the registered streams
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
query(String selector, { bool logError: true }) Element
Searches for child of element based on the given selector [...]
toString() → String
Returns a string representation of this object.
update() → void
Called by the framework after styles or attributes are updated from an external Component like MaterialAttribute or MaterialClass
waitForChild<T>(String selector, { Duration wait: const Duration(milliseconds: 100), int maxIterations: 10 }) → FutureOr<T>
Waits until the first descendant element of element that matches the specified selector is available. [...]


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

Static Methods

widget(HtmlElement element) MaterialTranslate