RustEnum<T> constructor
const
RustEnum<T> (
- int index, [
- T? values
Creates a Rust style enum (tuple or struct constructor).
Implementation
const RustEnum(
this.index, [
this.values,
]): assert(values == null || values is List || values is Map);