RustEnum<T> constructor

const RustEnum<T>(
  1. int index, [
  2. 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);