MdcWidgetComponentContext class final

The input passed to an MdcWidgetComponentBuilder.

Constructors

MdcWidgetComponentContext({required BuildContext context, required String name, required Map<String, Object?> properties, required Widget children, required Map<String, MdcWidgetSlot> slots})
Creates a Flutter component context.
const

Properties

children → Widget
The rendered default slot.
final
context → BuildContext
The active Flutter build context.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
The component name found in the source document.
final
properties → Map<String, Object?>
The component properties parsed from MDC source.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slots → Map<String, MdcWidgetSlot>
The rendered named slots.
final

Methods

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