WidgetBuildSettings class

A class that holds information about how to build a node that is to be output as a Flutter widget.

Inheritance

Constructors

WidgetBuildSettings({bool withOpacity = true, bool withVisibility = true, bool withRotation = true, bool withMargins = true, bool withConstraints = true, bool withReactions = true, bool withAlignment = true, bool isPreview = false, bool useInk = true, bool obscureImages = false, required String debugLabel, NullSubstitutionMode nullSubstitutionMode = NullSubstitutionMode.noChange, bool replaceVariablesWithSymbols = false})
Creates a WidgetBuildSettings instance.
const

Properties

debugLabel String
A debug label that is used to identify transformers in the widget tree.
final
hashCode int
The hash code for this object.
no setterinherited
isPreview bool
Whether to render the preview version of the widget.
finalinherited
nullSubstitutionMode NullSubstitutionMode
Defines what to do when a variable path results in a null value.
final
obscureImages bool
Whether to obscure images instead of rendering them.
finalinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
replaceVariablesWithSymbols bool
Whether to replace variables with fx symbols.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
useInk bool
Whether to wrap an Ink widget around this widget.
finalinherited
withAlignment bool
Whether to internally handle the node's alignment.
finalinherited
withConstraints bool
Whether to internally handle the node's constraints.
finalinherited
withMargins bool
Whether to internally handle the node's margins.
finalinherited
withOpacity bool
Whether to internally handle the node's opacity.
finalinherited
withReactions bool
Whether to internally handle the node's reactions.
finalinherited
withRotation bool
Whether to internally handle the node's rotation.
finalinherited
withVisibility bool
Whether to internally handle the node's visibility.
finalinherited

Methods

copyWith({bool? withOpacity, bool? withVisibility, bool? withRotation, bool? withMargins, bool? withConstraints, bool? withReactions, bool? withAlignment, bool? isPreview, bool? useInk, bool? obscureImages, String? debugLabel, NullSubstitutionMode? nullSubstitutionMode, bool? replaceVariablesWithSymbols}) WidgetBuildSettings
Creates a copy of this WidgetBuildSettings instance.
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