ReactiveRowCol class

Inheritance
Available extensions

Constructors

ReactiveRowCol({Key? key, required bool rowWhen(double screenWidth), required bool colWhen(double screenWidth), required List<Widget> children(bool isRow, bool isCol), MainAxisAlignment rowMainAxisAlignment = MainAxisAlignment.start, MainAxisAlignment colMainAxisAlignment = MainAxisAlignment.start, CrossAxisAlignment rowCrossAxisAlignment = CrossAxisAlignment.start, CrossAxisAlignment colCrossAxisAlignment = CrossAxisAlignment.start, MainAxisSize rowMainAxisSize = MainAxisSize.max, MainAxisSize colMainAxisSize = MainAxisSize.max, VerticalDirection rowVerticalDirection = VerticalDirection.down, VerticalDirection colVerticalDirection = VerticalDirection.down, TextBaseline? rowTextbaseline, TextBaseline? colTextbaseline, TextDirection? rowTextDirection, TextDirection? colTextDirection, Key? rowKey, Key? colKey})
The code snippet is defining a constructor for the ReactiveRowCol class in Dart.
const

Properties

children List<Widget> Function(bool isRow, bool isCol)
The children is a function parameter that takes two boolean parameters isRow and isCol. It is a callback function that is responsible for building and returning a list of widgets based on the values of isRow and isCol.
final
colCrossAxisAlignment CrossAxisAlignment
The colCrossAxisAlignment is used to specify how the children should be aligned along the cross axis when arranged in a column. The CrossAxisAlignment enum provides different options for alignment, such as start, end, center, stretch, and baseline. The value of colCrossAxisAlignment will be used when the children are arranged in a column.
final
colKey Key?
final
colMainAxisAlignment MainAxisAlignment
colMainAxisAlignment of type MainAxisAlignment. This variable is used to specify how the children should be aligned along the main axis when arranged in a column. The MainAxisAlignment enum provides different options for alignment, such as start, end, center, spaceBetween, spaceAround, and spaceEvenly. The value of colMainAxisAlignment will be used when the children are arranged in a column.
final
colMainAxisSize MainAxisSize
The colMainAxisSize is a variable that is used to specify the size of the Column widget along its main axis. It is of type MainAxisSize, which is an enum that provides two options: MainAxisSize.max and MainAxisSize.min.
final
colTextbaseline TextBaseline?
The colTextbaseline variable is used to specify the baseline alignment for the text within the Column widget. It accepts a value of type TextBaseline, which can be one of the following options:
final
colTextDirection TextDirection?
The colTextDirection variable is used to specify the direction of the text within the Column widget. It accepts a value of type TextDirection, which can be either TextDirection.ltr (left-to-right) or TextDirection.rtl (right-to-left). By setting the value of colTextDirection, you can control the direction of the text within the Column widget.
final
colVerticalDirection VerticalDirection
The colVerticalDirection variable is used to specify the vertical direction in which the children should be laid out when arranged in a column. It accepts a value of type VerticalDirection, which can be either down or up. The down value indicates that the children should be laid out from top to bottom, while the up value indicates that the children should be laid out from bottom to top.
final
colWhen bool Function(double screenWidth)
The colWhen is a function parameter that takes a double value representing the screen width and returns a bool value. It is used to determine at what point of the screen width the children should be arranged in column form. The function should return true when the condition for arranging the children in column form is satisfied, and false otherwise.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
rowCrossAxisAlignment CrossAxisAlignment
rowCrossAxisAlignment of type CrossAxisAlignment. This variable is used to specify how the children should be aligned along the cross axis when arranged in a row. The CrossAxisAlignment enum provides different options for alignment, such as start, end, center, stretch, and baseline. The value of rowCrossAxisAlignment will be used when the children are arranged in a row.
final
rowKey Key?
final
rowMainAxisAlignment MainAxisAlignment
The rowMainAxisAlignment is used to specify how the children should be aligned along the main axis when arranged in a row. The MainAxisAlignment enum provides different options for alignment, such as start, end, center, spaceBetween, spaceAround, and spaceEvenly. The value of rowMainAxisAlignment will be used when the children are arranged in a row.
final
rowMainAxisSize MainAxisSize
The rowMainAxisSize variable is used to specify the size of the Row widget along its main axis. It is of type MainAxisSize, which is an enum that provides two options: MainAxisSize.max and MainAxisSize.min.
final
rowTextbaseline TextBaseline?
The rowTextbaseline is a variable that is used to specify the baseline alignment for the text within the Row widget. It accepts a value of type TextBaseline, which can be one of the following options:
final
rowTextDirection TextDirection?
The rowTextDirection variable is used to specify the direction of the text within the Row widget. It accepts a value of type TextDirection, which can be either TextDirection.ltr (left-to-right) or TextDirection.rtl (right-to-left). By setting the value of rowTextDirection, you can control the direction of the text within the Row widget.
final
rowVerticalDirection VerticalDirection
The rowVerticalDirection parameter is used to specify the vertical direction in which the children should be laid out when arranged in a row. It accepts a value of type VerticalDirection, which can be either down or up. The down value indicates that the children should be laid out from top to bottom, while the up value indicates that the children should be laid out from bottom to top.
final
rowWhen bool Function(double screenWidth)
The rowWhen parameter is a function that takes a double value representing the screen width and returns a bool value. It is used to determine at what point of the screen width the children should be arranged in a row form.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

algn({double? hf, double? wf, Al al = Al.c}) Align

Available on Widget, provided by the AlignCntrExt extension

The function algn returns an Align widget with specified alignment, height factor, width factor, and child.
asptRto(double aspectRatio) AspectRatio

Available on Widget, provided by the AspectRatioExt extension

The function asptRto returns an AspectRatio widget with a specified aspect ratio and child widget.
build(BuildContext context) Widget
The function builds a widget based on the current width of the screen, either a Row or a Column, depending on the conditions specified.
override
cntr({double? hf, double? wf}) Center

Available on Widget, provided by the AlignCntrExt extension

The function cntr takes in optional parameters hf and wf and returns a Center widget with the specified height and width factors, and the child widget.
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
expd({int flex = 1}) Expanded

Available on Widget, provided by the ExpandedExt extension

The function expd returns an Expanded widget with a specified flex value and child widget.
expdH() SizedBox

Available on Widget, provided by the ExpandedExt extension

The function expdH returns a SizedBox widget with a height of double.infinity and a child widget wrapped in an Expanded widget.
expdW() SizedBox

Available on Widget, provided by the ExpandedExt extension

The function expdW returns a SizedBox widget with the width set to double.infinity and a child widget wrapped in an Expanded widget.
fitdbx({Al al = Al.c, Clip clpbhvr = Clip.antiAlias, BoxFit fit = BoxFit.contain, Key? key}) FittedBox

Available on Widget, provided by the FittedBoxExt extension

The function fitdbx returns a FittedBox widget with specified alignment, clip behavior, fit, and child.
flxbl({FlexFit fit = FlexFit.loose, int flex = 1}) Flexible

Available on Widget, provided by the ExpandedExt extension

The function flxbl returns a Flexible widget with specified fit and flex properties, and the child widget.
fracSzdBox({double? hf, double? wf, Al al = Al.c}) FractionallySizedBox

Available on Widget, provided by the FracSzdBox extension

The fracSzdBox function returns a FractionallySizedBox widget with optional height and width factors and alignment.
limtdbx({double mxH = double.infinity, double mxW = double.infinity}) LimitedBox

Available on Widget, provided by the LimitedBoxExt extension

The function limtdbx returns a LimitedBox widget with specified maximum height and width, and the child widget as its child.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
p(double val) Padding

Available on Widget, provided by the PaddingExt extension

The function p returns a Padding widget with a specified padding value and the child widget.
p12() Padding

Available on Widget, provided by the PaddingExt extension

The function p12 returns a Padding widget with a padding of 12 pixels on all sides and the child widget passed to it.
p16() Padding

Available on Widget, provided by the PaddingExt extension

The function p16 returns a Padding widget with a padding of 16 pixels on all sides and the child widget passed to it.
p20() Padding

Available on Widget, provided by the PaddingExt extension

The function p20 returns a Padding widget with a padding of 20 pixels on all sides and the child widget passed to it.
p24() Padding

Available on Widget, provided by the PaddingExt extension

The function p24 returns a Padding widget with a padding of 24.0 on all sides and the child widget as its child.
ph(double p) Padding

Available on Widget, provided by the PaddingExt extension

The function ph returns a Padding widget with horizontal padding of p and the child widget.
ph12() Padding

Available on Widget, provided by the PaddingExt extension

The function ph12 returns a Padding widget with horizontal padding of 12.0.
ph16() Padding

Available on Widget, provided by the PaddingExt extension

The function ph16 returns a Padding widget with horizontal padding of 16.0.
ph20() Padding

Available on Widget, provided by the PaddingExt extension

The function ph20 returns a Padding widget with a horizontal padding of 20.
ph24() Padding

Available on Widget, provided by the PaddingExt extension

The function adds horizontal padding of 24 pixels to a widget.
pLRB({double p = 12.0, double? l, double? r, double? b}) Padding

Available on Widget, provided by the PaddingExt extension

The function pLRB returns a Padding widget with customizable padding values for left, right, and bottom, or a default value if not provided.
pLRT({double p = 12.0, double? l, double? r, double? t}) Padding

Available on Widget, provided by the PaddingExt extension

The function pLRT returns a Padding widget with customizable padding values for left, right, and top, or a default value if not provided.
pLTRB(double l, double t, double r, double b) Padding

Available on Widget, provided by the PaddingExt extension

The function pLTRB returns a Padding widget with specified left, top, right, and bottom padding values.
pOnly({double l = 0, double r = 0, double t = 0, double b = 0}) Padding

Available on Widget, provided by the PaddingExt extension

The function pOnly returns a Padding widget with specified padding values for left, right, top, and bottom.
pos({double? h, double? w, double? l, double? r, double? b, double? t, Key? key}) Positioned

Available on Widget, provided by the PositionedExt extension

The pos function returns a Positioned widget with specified positioning properties and a child widget.
psymtc({double h = 0.0, double v = 0.0}) Padding

Available on Widget, provided by the PaddingExt extension

The psymtc function returns a Padding widget with the specified horizontal and vertical padding values.
pv(double p) Padding

Available on Widget, provided by the PaddingExt extension

The function pv returns a Padding widget with vertical padding of p and the child widget as its child.
pv12() Padding

Available on Widget, provided by the PaddingExt extension

The function pv12 returns a Padding widget with a vertical padding of 12.0.
pv16() Padding

Available on Widget, provided by the PaddingExt extension

The function pv16 returns a Padding widget with a vertical padding of 16.0.
pv20() Padding

Available on Widget, provided by the PaddingExt extension

The function pv20 returns a Padding widget with a vertical padding of 20.
pv24() Padding

Available on Widget, provided by the PaddingExt extension

The function adds vertical padding of 24.0 units to a given widget.
slivadapt({Key? key}) SliverToBoxAdapter

Available on Widget, provided by the SliverToBoxAdaptarExt extension

The function slivadapt returns a SliverToBoxAdapter widget with the given key and child.
szdbox({double? h, double? w}) SizedBox

Available on Widget, provided by the SizedBoxExtWidget extension

The szdbox function returns a SizedBox widget with the specified height, width, and child.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited