SpWMLElement class

(en)Definition of the basic structure of the element.

(ja)要素の基本構造の定義。

Inheritance
Implementers

Constructors

SpWMLElement(int serial, EnumSpWMLElementType type, Map<String, String> param, SpWMLParamsWrapper spwmlParams, int parentSerial, int lineStart, int lineEnd, SpWMLFontStyle style, SpWMLInfo? info)
  • serial : Array Index.
  • type : Element type.
  • param : 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.
  • Properties

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

    Methods

    build(BuildContext context) Widget
    Assemble and return the widget.
    override
    constraints(Widget child) Widget
    Wrap if necessary.
    container(Widget child) Widget
    Wrap if necessary.
    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.
    getBorderSide() BorderSide?
    Get button or card borderSide. This method is used internally by the package and should not be called externally.
    getClassName() String
    Get this class name.
    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.
    getSID() String?
    (en) Gets the SID set for this element. Returns null if not set.
    getWidget(BuildContext context) Widget
    get this element widget. This method is used internally by the package and should not be called externally.
    initParams() SpWMLElement
    initialize parameters. This method is used internally by the package and should not be called externally.
    material(Widget child) Widget
    Wrap if necessary.
    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.
    setIsGone(bool isGone) → void
    Set visibility flag.
    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}) 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.

    Operators

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