Iteo/theme_tailor

Copy documentation comments to generated class

Closed this issue · 0 comments

I'm not sure if this would be possible, but it would be cool if documentation comments added to the properties in the class annotated with @tailor were copied to the generated class. For example:

@tailor
class _$MyTheme{
  /// A documentation comment.
  static List<Color> customColor = [Colors.red, Colors.blue];
}

generates:

class MyTheme extends ThemeExtension<Colors> {
  ...
  /// A documentation comnent.
  final Color customColor;
  ...
}