KiteToggle class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- KiteToggle
- Available extensions
Constructors
-
KiteToggle({required bool selected, required ValueChanged<
bool> onChanged, Key? key, String? label, IconData? icon, bool enabled = true}) -
const
Properties
- enabled → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → String?
-
final
-
onChanged
→ ValueChanged<
bool> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool
-
final
Methods
-
absorbPointer(
{bool absorbing = true}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
align(
AlignmentGeometry alignment, {Key? key, double? widthFactor, double? heightFactor}) → Align -
Available on Widget, provided by the WidgetLayoutExtensions extension
Aligns this widget within the available space. -
aspectRatio(
double ratio) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
center(
{Key? key, double? widthFactor, double? heightFactor}) → Center -
Available on Widget, provided by the WidgetLayoutExtensions extension
Centers this widget within the available space. -
clipRadius(
BorderRadiusGeometry borderRadius, {Clip clipBehavior = Clip.antiAlias}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
clipRounded(
BorderRadiusGeometry borderRadius, {Key? key, Clip clipBehavior = Clip.antiAlias}) → ClipRRect -
Available on Widget, provided by the WidgetLayoutExtensions extension
Clips this widget to a rounded rectangle using the supplied radius. -
constrained(
{double minWidth = 0, double maxWidth = double.infinity, double minHeight = 0, double maxHeight = double.infinity}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
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
-
decorated(
BoxDecoration decoration, {Key? key, DecorationPosition position = DecorationPosition.background}) → DecoratedBox -
Available on Widget, provided by the WidgetLayoutExtensions extension
Paints a caller-provided box decoration behind or in front of this widget. -
expanded(
{Key? key, int flex = 1}) → Expanded -
Available on Widget, provided by the WidgetLayoutExtensions extension
Fills a share of remaining space in a Row, Column, or Flex. -
flexible(
{Key? key, int flex = 1, FlexFit fit = FlexFit.loose}) → Flexible -
Available on Widget, provided by the WidgetLayoutExtensions extension
Allocates flex space with either loose or tight child constraints. -
gesture(
{VoidCallback? onTap, VoidCallback? onDoubleTap, VoidCallback? onLongPress, GestureTapDownCallback? onTapDown, GestureTapUpCallback? onTapUp, HitTestBehavior behavior = HitTestBehavior.deferToChild}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
hero(
Object tag) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
ignorePointer(
{bool ignoring = true}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
inkWell(
{VoidCallback? onTap, VoidCallback? onLongPress, BorderRadius? borderRadius, bool enableFeedback = true}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onTap(
VoidCallback? callback, {HitTestBehavior behavior = HitTestBehavior.opaque}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
opacity(
double value, {bool alwaysIncludeSemantics = false}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
padding(
EdgeInsetsGeometry insets, {Key? key}) → Padding -
Available on Widget, provided by the WidgetLayoutExtensions extension
Insets this widget using caller-provided, non-negative padding. -
padding(
EdgeInsetsGeometry value) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
paddingAll(
double value) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
paddingHorizontal(
double value) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
paddingOnly(
{double left = 0, double top = 0, double right = 0, double bottom = 0}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
paddingSymmetric(
{double horizontal = 0, double vertical = 0}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
paddingVertical(
double value) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
positioned(
{Key? key, double? left, double? top, double? right, double? bottom, double? width, double? height}) → Positioned -
Available on Widget, provided by the WidgetLayoutExtensions extension
Positions this widget relative to a Stack's edges. -
positionedFill(
{Key? key, double? left = 0, double? top = 0, double? right = 0, double? bottom = 0}) → Positioned -
Available on Widget, provided by the WidgetLayoutExtensions extension
Stretches this widget between a Stack's edges. -
safeArea(
{bool left = true, bool top = true, bool right = true, bool bottom = true, EdgeInsets minimum = EdgeInsets.zero, bool maintainBottomViewPadding = false}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
semantics(
{String? label, String? hint, bool? button, bool? enabled}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
showIf(
bool condition) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
sized(
{Key? key, double? width, double? height}) → SizedBox -
Available on Widget, provided by the WidgetLayoutExtensions extension
Requests a width and/or height, subject to the parent's constraints. -
sliver(
) → Widget -
Available on Widget, provided by the WidgetExtensions 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, {Duration? waitDuration}) → Widget -
Available on Widget, provided by the WidgetExtensions 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
-
visible(
bool value, {Widget replacement = const SizedBox.shrink()}) → Widget -
Available on Widget, provided by the WidgetExtensions extension
-
when(
bool condition, Widget wrapper(Widget child)) → Widget -
Available on Widget, provided by the WidgetExtensions extension
Applieswrapperonly whenconditionis true.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited