With<T extends Object?>.fromString constructor

const With<T extends Object?>.fromString(
  1. String? stringType
)

Marks a union type to mixin the interface stringType. This constructor must be used when mixing in a generic class with a generic type parameter e.g. AdministrativeArea<T> otherwise dart will throw a load error when compiling the annotation.

Implementation

const With.fromString(this.stringType);