CheckboxElement class

(en) The checkbox.

(ja) checkboxの実装。

Inheritance

Constructors

CheckboxElement(int serial, Map<String, String> params, SpWMLParamsWrapper spwmlParams, int parentSerial, int lineStart, int lineEnd, SpWMLFontStyle style, SpWMLInfo? info, StructureElementChildren children, CheckboxParamsWrapper elParams, {Key? key})
  • serial : Array Index.
  • params : Element parameters.
  • spwmlParams : The spwml element parameters.
  • parentSerial : Parent Element serial.
  • lineStart : line info for the Error handling.
  • lineEnd : line info for the Error handling.
  • style : Font styles.
  • info : SpWML info.
  • children : This element children.
  • elParams : This element parameters.
  • Properties

    children StructureElementChildren
    finalinherited
    elParams CheckboxParamsWrapper
    final
    hashCode int
    The hash code for this object.
    no setterinherited
    info SpWMLInfo?
    finalinherited
    key Key?
    Controls how one widget replaces another widget in the tree.
    finalinherited
    lineEnd int
    finalinherited
    lineStart int
    finalinherited
    params Map<EnumSpWMLParams, dynamic>
    finalinherited
    parentSerial int
    finalinherited
    runtimeType Type
    A representation of the runtime type of the object.
    no setterinherited
    serial int
    finalinherited
    spwmlParams SpWMLParamsWrapper
    finalinherited
    style SpWMLFontStyle
    finalinherited
    type EnumSpWMLElementType
    finalinherited

    Methods

    build(BuildContext context) Widget
    Assemble and return the widget.
    inherited
    constraints(Widget child) Widget
    Wrap if necessary.
    inherited
    container(Widget child) Widget
    Wrap if necessary. Features such as containers and inks are disabled in the tooltip.
    inherited
    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
    expand(Widget child) Widget
    Wrap if necessary.
    inherited
    getBorderSide() BorderSide?
    Get button or card borderSide. This method is used internally by the package and should not be called externally.
    inherited
    getClassName() String
    Get this class name.
    override
    getHeight() double?
    (en) Get element height. If not set, null is returned. Note that this does not return the widget's height, but the height set on this element.
    inherited
    getMargin() EdgeInsetsGeometry?
    (en) Get margin. If it doesn't exist, null is returned.
    inherited
    getPadding() EdgeInsetsGeometry?
    (en) Get padding. If it doesn't exist, null is returned.
    inherited
    getShape() OutlinedBorder?
    Get element shape. It works for btn, card, radioBtn and checkbox. This method is used internally by the package and should not be called externally.
    inherited
    getSID() String?
    (en) Gets the SID set for this element. Returns null if not set.
    inherited
    getTag() String?
    (en) Gets the Tag set for this element. Returns null if not set.
    inherited
    getValue() List<bool>?
    (en) Get the value. If the manager class has not been set or there is no value, null is returned.
    getWidget(BuildContext context) Widget
    Assemble and return the widget.
    override
    getWidth() double?
    (en) Get element width. If not set, null is returned. Note that this does not return the widget's width, but the width set on this element.
    inherited
    initParams() CheckboxElement
    Initialize the parameters.
    override
    material(Widget child) Widget
    Wrap if necessary.
    inherited
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    setBGColor(Color c) → void
    Set background color. Calling this will also automatically update the box decoration internally.
    inherited
    setCallback(void callback(List<bool>? checkValues)?) → void
    (en)Set checkboxes callback.
    setDisabledIndexes(List<int> indexes) → void
    (en) Specify the checkbox you want to disable by index number. If set to empty, all checkbox will be enabled. However, if disabled with setEnabled, all checkbox will remain disabled.
    setElementKey(Key? key) → void
    (en) Sets the key for this element.
    inherited
    setEnabled(bool isEnabled) → void
    (en) Enable/disable this button.
    setHeight(double h) → void
    (en) Set element height.
    inherited
    setIsGone(bool isGone) → void
    Set visibility flag.
    inherited
    setManager(MultiFlagManager m, String sid) → void
    (en) Sets the manager class that manages the state.
    setMargin(EdgeInsetsGeometry? margin) → void
    (en) Set margin.
    inherited
    setPadding(EdgeInsetsGeometry? padding) → void
    (en) Set padding.
    inherited
    setValue(List<bool> v) → void
    (en) Sets the value. Disabled if the manager class is not set.
    setWidth(double w) → void
    (en) Set element width.
    inherited
    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
    transform(Widget child) Widget
    Wrap if necessary.
    inherited

    Operators

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