PresetBuilder class
Preset Builder
Preset builder instances can be assigned to MaterialApp.builder of the conventional material app: If making use of the conventional Material app is important, making use of this method can come in handy.
MaterialApp(
builder: PresetBuilder(
preset: {
Chrome.internal,
Typeface.redmond,
implementation: implementation,
),
);
Constructors
-
PresetBuilder({Set<
PresetValue< presets = const {}, Protocol? protocol, BuildCallback? builder})PresetValue> > -
const
Properties
- builder → BuildCallback?
-
Works exactly as MaterialApp.builder. You can
implement preset values manually from here as
the given context has already been logged with
presets. See MaterialApp.builder
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
presets
→ Set<
PresetValue< PresetValue> > -
Set of default preset values this builder will
pass down to its children via context.. Defined
preset values serve as fallback during used by
protocol.
final
- protocol → Protocol?
-
Implement preset values into the conventional
material theme data. The default implementation
is used if this argument is omitted.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
BuildContext context, Widget? child) → Widget - Gives class access to behave like BuildCallback which gives it permission to be assigned to MaterialApp.builder
-
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