Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 693 Bytes

page.md

File metadata and controls

22 lines (18 loc) · 693 Bytes

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.

  • Sample Code

/// Hello World
class HelloWordPage extends Page<String, String> {
    HelloWordPage():
        super(
            initState: (String msg) => msg,
            view:(String msg, _, __) => Text('Hello ${msg}'),
        );
}

HelloWordPage().buildPage('world')