p69 / dartea

The Elm Architecture (TEA) for Flutter
MIT License
131 stars 15 forks source link

What if one need pass some parameters to _init..? #17

Closed ValeriusGC closed 5 years ago

ValeriusGC commented 5 years ago

We have

    return ProgramWidget(
      init: _init,
      update: (msg, model) => _update(msg, model),
      view: _view,
      withMessagesBus: true,
    );

where init has signature without any custom parameters. What if one need pass some?