GetX<T extends DisposableInterface> class
- Inheritance
- Available extensions
Constructors
-
GetX.new({Key? key, String? tag, required GetXControllerBuilder<
T> builder, bool global = true, bool autoRemove = true, void initState(GetXState<T> state)?, bool assignId = false, void dispose(GetXState<T> state)?, void didChangeDependencies(GetXState<T> state)?, void didUpdateWidget(GetX<DisposableInterface> oldWidget, GetXState<T> state)?, T? init}) -
const
Properties
- assignId → bool
-
final
- autoRemove → bool
-
final
-
builder
→ GetXControllerBuilder<
T> -
final
-
didChangeDependencies
→ void Function(GetXState<
T> state)? -
final
-
didUpdateWidget
→ void Function(GetX<
DisposableInterface> oldWidget, GetXState<T> state)? -
final
-
dispose
→ void Function(GetXState<
T> state)? -
final
- global → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- init → T?
-
final
-
initState
→ void Function(GetXState<
T> state)? -
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- marginZero → Widget
-
Available on Widget, provided by the WidgetMarginX extension
no setter - paddingZero → Widget
-
Available on Widget, provided by the WidgetPaddingX extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sliverBox → Widget
-
Available on Widget, provided by the WidgetSliverBoxX extension
no setter - sliverFill → Widget
-
Available on Widget, provided by the GetWidgetX extension
no setter - tag → String?
-
final
- widgetSpan → WidgetSpan
-
Available on Widget, provided by the GetWidgetX extension
no setter
Methods
-
clickable(
{bool enabled = true, VoidCallback? onTap, Key? key}) → Widget -
Available on Widget, provided by the ClickableX extension
-
clipOval(
{Key? key, bool clip = true, CustomClipper< Rect> ? clipper, Clip clipBehavior = Clip.antiAlias}) → Widget -
Available on Widget, provided by the GetWidgetX extension
-
clipRect(
{Key? key, bool clip = true, bool oval = false, BorderRadius? borderRadius, Clip clipBehavior = Clip.antiAlias}) → Widget -
Available on Widget, provided by the GetWidgetX extension
-
column(
{Key? key, bool enabled = true, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, VerticalDirection verticalDirection = VerticalDirection.down, TextBaseline? textBaseline, List< Widget> before = const [], List<Widget> after = const []}) → Widget -
Available on Widget, provided by the GetWidgetX extension
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → GetXState< T> -
Creates the mutable state for this widget at a given location in the tree.
override
-
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.
override
-
flex(
{Key? key, int flex = 1, bool enabled = true, bool expanded = false}) → Widget -
Available on Widget, provided by the GetWidgetX extension
-
marginAll(
double margin) → Widget -
Available on Widget, provided by the WidgetMarginX extension
-
marginOnly(
{double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) → Widget -
Available on Widget, provided by the WidgetMarginX extension
-
marginSymmetric(
{double horizontal = 0.0, double vertical = 0.0}) → Widget -
Available on Widget, provided by the WidgetMarginX extension
-
material(
{Key? key, bool enabled = true, MaterialType type = MaterialType.transparency, double elevation = 0.0, Color? color, Color? shadowColor, TextStyle? textStyle, BorderRadiusGeometry? borderRadius, ShapeBorder? shape, bool borderOnForeground = true, Clip clipBehavior = Clip.none, Duration animationDuration = kThemeChangeDuration}) → Widget -
Available on Widget, provided by the GetWidgetX extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paddingAll(
double padding) → Widget -
Available on Widget, provided by the WidgetPaddingX extension
-
paddingOnly(
{double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) → Widget -
Available on Widget, provided by the WidgetPaddingX extension
-
paddingSymmetric(
{double horizontal = 0.0, double vertical = 0.0}) → Widget -
Available on Widget, provided by the WidgetPaddingX extension
-
plainButton(
{Key? key, bool enabled = true, bool primary = false, EdgeInsetsGeometry? padding, double? horizontalPadding, double? verticalPadding, double? topPadding, double? bottomPadding, double? leftPadding, double? rightPadding, Color? color, Color? backgroundColor, Color disabledColor = CupertinoColors.quaternarySystemFill, double? minSize = kMinInteractiveDimensionCupertino, double? iconSize, double? pressedOpacity = 0.4, BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(8.0)), AlignmentGeometry alignment = Alignment.center, VoidCallback? onPressed}) → Widget -
Available on Widget, provided by the GetWidgetX extension
-
plainButtonMini(
{Key? key, bool enabled = true, bool primary = false, EdgeInsetsGeometry? padding, double? horizontalPadding, double? verticalPadding, double? topPadding, double? bottomPadding, double? leftPadding = 12, double? rightPadding = 12, Color? color, Color? backgroundColor, Color disabledColor = CupertinoColors.quaternarySystemFill, double? minSize = 0, double? iconSize = 20, double? pressedOpacity = 0.4, BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(8.0)), AlignmentGeometry alignment = Alignment.center, VoidCallback? onPressed}) → Widget -
Available on Widget, provided by the GetWidgetX extension
-
plainButtonZero(
{Key? key, bool enabled = true, bool primary = false, EdgeInsetsGeometry? padding, double? horizontalPadding, double? verticalPadding, double? topPadding, double? bottomPadding, double? leftPadding, double? rightPadding, Color? color, Color? backgroundColor, Color disabledColor = CupertinoColors.quaternarySystemFill, double? minSize = 0, double? iconSize, double? pressedOpacity = 0.4, BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(8.0)), AlignmentGeometry alignment = Alignment.center, VoidCallback? onPressed}) → Widget -
Available on Widget, provided by the GetWidgetX extension
-
popupMenuItem<
T> ({T? value, bool enabled = true, double? height = 36, EdgeInsets? padding, TextStyle? textStyle, MouseCursor? mouseCursor}) → PopupMenuItem< T> -
Available on Widget, provided by the GetPopupMenuWidget extension
-
row(
{Key? key, bool enabled = true, MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start, MainAxisSize mainAxisSize = MainAxisSize.max, CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center, VerticalDirection verticalDirection = VerticalDirection.down, TextBaseline? textBaseline, List< Widget> before = const [], List<Widget> after = const []}) → Widget -
Available on Widget, provided by the GetWidgetX extension
-
sizedBox(
double? size, {Key? key, Alignment? alignment}) → Widget -
Available on Widget, provided by the GetWidgetX extension
-
sizedCenter(
double? size, {Key? key}) → Widget -
Available on Widget, provided by the GetWidgetX extension
-
stack(
{Key? key, bool enabled = true, AlignmentGeometry alignment = AlignmentDirectional.topStart, StackFit fit = StackFit.loose, Clip clipBehavior = Clip.hardEdge, List< Widget> back = const [], List<Widget> front = const []}) → Widget -
Available on Widget, provided by the GetWidgetX extension
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
tooltip(
[String? message]) → Widget -
Available on Widget, provided by the GetWidgetX extension
-
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
-
use<
S> (S dependency, {String? tag, bool permanent = false, InstanceBuilderCallback< S> ? builder}) → S -
Available on Diagnosticable, provided by the GetDiagnosticable extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited