presentation method

Widget presentation(
  1. BuildContext context,
  2. Widget body
)

Override to further define how the main body is presented.

Tip: This is useful for showing or hiding the body content from the user or displaying loading indicators while the body content is being loaded.

Example:

@override
Widget bodyWrapper(BuildContext context, Widget body) {
  return PodBuilder(
    pod: this._pIsLoading,
    builder: (context, child, isLoading) {
      if (isLoading) {
        return CircularProgressIndicator();
      } else {
        return child;
      }
    },
    child: body,
  );
}

Implementation

Widget presentation(BuildContext context, Widget body) {
  return body;
}