MdcModule class final
Installs MDC parsing and renderer-specific components into an application.
Constructors
-
MdcModule({MdcParser parser = const MdcParser(), List<
MdcComponentBinding> components = const <MdcComponentBinding>[]}) -
Creates an MDC module.
const
Properties
-
components
→ List<
MdcComponentBinding> -
Components contributed to MDC renderers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- parser → MdcParser
-
The parser shared by the application.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
AppContext context) → FutureOr< void> -
Releases resources owned by this module.
inherited
-
initialize(
AppContext context) → FutureOr< void> -
Starts work after every module has registered its values.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
ModuleRegistry registry) → void -
Registers the values and bindings owned by this module.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited