Page

  • One and only one store in one page
  • Page inherits from Component, so it can configure all the factors of Component.
  • Page can configure Middleware for AOP management of Redux.
  • Page must be configured with an initialization function that initializes page data initState.
    Page - 图1

  • Sample Code

  1. /// Hello World
  2. class HelloWordPage extends Page<String, String> {
  3. HelloWordPage():
  4. super(
  5. initState: (String msg) => msg,
  6. view:(String msg, _, __) => Text('Hello ${msg}'),
  7. );
  8. }
  9. HelloWordPage().buildPage('world')