AbsNodeType class abstract

An abstract class about node data type. There're 2 kinds of node: inner node (including root) & leaf node.

Constructors

AbsNodeType.new({required dynamic id, required String title, bool isInner = true, bool isUnavailable = false, bool? isChosen = false, bool isExpanded = false, bool isFavorite = false, bool isShowedInSearching = true, bool isBlurred = false})

Properties

hashCode int
The hash code for this object.
no setterinherited
id ↔ dynamic
getter/setter pair
isBlurred bool
An effect that similar to disabled but the node can be choosen In case to blur the node that not matched the text and highlight the matched Default value is false
getter/setter pair
isChosen bool?
  • Inner node:
    • If isChosen == true, all of its children are chosen.
    • if isChosen == false, all of its children are unchosen.
    • If isChosen == null, some of its children are chosen, some are not.
  • Leaf node: Only true or false.
  • getter/setter pair
    isExpanded bool
    This property will be useful in an expandable tree view widget.
    getter/setter pair
    isFavorite bool
    getter/setter pair
    isInner bool
    Default value is true.
    getter/setter pair
    isShowedInSearching bool
    If we are searching a text in this tree, every branch from found nodes to the root should display true - else not show in searching false.
    getter/setter pair
    isUnavailable bool
    A node is disabled/unavailable for some reasons? --\(^.^)/--
    getter/setter pair
    runtimeType Type
    A representation of the runtime type of the object.
    no setterinherited
    title String
    getter/setter pair

    Methods

    clone<T extends AbsNodeType>() → T
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    toString() String
    A string representation of this object.
    override

    Operators

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