widget_driver_generator 0.0.2 copy "widget_driver_generator: ^0.0.2" to clipboard
widget_driver_generator: ^0.0.2 copied to clipboard

outdated

This package provides generators for WidgetDriver to automate the creation of your TestDrivers and WidgetDriverProviders

example/README.md

Implement a Driver inside your project #

@Driver()
class MyDriver extends WidgetDriver {
  ...

  @DriverProperty(1)
  int get value => _someService.value;

  @DriverAction()
  void doSomething() {
    ...
  }

  @DriverAction('The string')
  String giveMeSomeString() {
    return _someService.getSomeString();
  }
}

Generate the code #

In order to generate TestDrivers and WidgetDriverProviders just run this command:

flutter pub run build_runner build
2
likes
0
points
124
downloads

Publisher

verified publisherbmwtech.dev

Weekly Downloads

This package provides generators for WidgetDriver to automate the creation of your TestDrivers and WidgetDriverProviders

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, build, source_gen, widget_driver_annotation

More

Packages that depend on widget_driver_generator