ValueWrap<T> class

@author: slc @date: 2023-07-12 14:51:21 泛型类 ValueWrap,用于包装一个泛型数据 可以存储和获取泛型类型的数据

Constructors

ValueWrap({T? data})
构造函数,用于初始化 ValueWrap 实例 data 可选参数,用于初始化存储的数据

Properties

data ↔ T?
存储泛型数据,允许为 null
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getData() → T?
获取存储的数据 返回存储的数据,可能为 null
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setData(T data) → void
设置存储的数据 data 要存储的泛型数据
toString() String
A string representation of this object.
inherited

Operators

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