Implements<T extends Object?>.fromString constructor

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

Marks a union type to implement the interface stringType. This constructor must be used when implementing 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 Implements.fromString(this.stringType);