artflutter / reactive_forms_generator

Other
88 stars 22 forks source link

Generics with extends #155

Closed BenjiFarquhar closed 4 months ago

BenjiFarquhar commented 6 months ago

Hi, I want to do this, but the extends VgnItmEst part does not get generated

part 'id_form_model.gform.dart';

@Rf()
@RfGroup()
class Id<T extends VgnItmEst> extends IdModel<T> {
  Id({
    @RfControl(
      validators: [VpValidators.required],
    )
    String? companyName,
    @RfControl(
      validators: [VpValidators.required],
    )
    String? name,
  });

}
vasilich6107 commented 5 months ago

Hey @BenjiFarquhar check https://pub.dev/packages/reactive_forms_generator/versions/4.8.0-beta.0

BenjiFarquhar commented 4 months ago

@vasilich6107 This looks good, thanks.

vasilich6107 commented 4 months ago

fixed

github-actions[bot] commented 4 months ago

Hi @BenjiFarquhar! Your issue has been closed. If we were helpful don't forget to star the repo.

Please check our reactive_forms_widget package

We would appreciate sponsorship subscription or one time donation https://github.com/sponsors/artflutter