SpWMLDialog class

(en) A class for creating dialogs using SpWML.

(ja) SpWMLを使ってダイアログを作成するためのクラスです。

Inheritance

Constructors

SpWMLDialog(SpWMLBuilder b, Widget? title, {double? width, double? height, Widget? cancelBtnText, Widget? okBtnText, void cancelBtnCallback(Function dialogClose)?, void okBtnCallback(Function dialogClose)?, Key? key})
  • b : Dialog content.
  • title : Dialog title. e.g. text widget.
  • width : Dialog width. By default it is 80% of the screen width.
  • height : Dialog height. By default it height is inner spwml view height. Note that the height specified here is the height of the dialog's content and does not include the height of buttons, etc.
  • cancelBtnText : Cancel button text. if this and cancelBtnCallback is null, not create cancel button. if this is null and cancelBtnCallback is not null, auto set Text('Cancel').
  • okBtnText : OK button text. if this and okBtnCallback is null, not create ok button. if this is null and okBtnCallback is not null, auto set Text('OK').
  • cancelBtnCallback : Cancel button callback function. if this and cancelBtnText is null, not create cancel button.
  • okBtnCallback : OK button callback function. if this and okBtnText is null, not create ok button.
  • const

    Properties

    b SpWMLBuilder
    final
    cancelBtnCallback → (void Function(Function dialogClose)?)
    final
    cancelBtnText Widget?
    final
    hashCode int
    The hash code for this object.
    no setterinherited
    height double?
    final
    key Key?
    Controls how one widget replaces another widget in the tree.
    finalinherited
    okBtnCallback → (void Function(Function dialogClose)?)
    final
    okBtnText Widget?
    final
    runtimeType Type
    A representation of the runtime type of the object.
    no setterinherited
    title Widget?
    final
    width double?
    final

    Methods

    createElement() StatefulElement
    Creates a StatefulElement to manage this widget's location in the tree.
    inherited
    createState() SpWMLDialogState
    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.
    inherited
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    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}) 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