WithPrefix class

Override prefix in generated class names.

If applied to top class it will change prefix names for all sub classes.

This can not be applied to sub classes.

for example:

@WithPrefix('Lollipop')
abstract class _Weather { // will become Weather
  void sunny(); // will become LollipopSunny

  void rainy(int rain); // will become LollipopRainy
}
Annotations
  • @Target({TargetKind.classType})

Constructors

WithPrefix(String prefix)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
prefix String
prefix.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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