WithName class

Override generated sub class names.

If applied to sub classes it will change the specified sub class full name.

This can not be applied to top class.

for example:

abstract class _Weather { // will become Weather
  void sunny(); // will become WeatherSunny

  @WithName('Hello')
  void rainy(int rain); // will become Hello
}
Annotations
  • @Target({TargetKind.method})

Constructors

WithName(String name)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
name.
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