PageViewModel constructor
PageViewModel({
- String? title,
- Widget? titleWidget,
- String? body,
- Widget? bodyWidget,
- Widget? image,
- bool reverse = false,
- PageDecoration decoration = const PageDecoration(),
- bool useScrollView = true,
- ScrollViewKeyboardDismissBehavior scrollViewKeyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- bool useRowInLandscape = false,
Implementation
PageViewModel({
this.title,
this.titleWidget,
this.body,
this.bodyWidget,
this.image,
this.footer,
this.reverse = false,
this.decoration = const PageDecoration(),
this.useScrollView = true,
this.scrollViewKeyboardDismissBehavior =
ScrollViewKeyboardDismissBehavior.manual,
this.useRowInLandscape = false,
}) : assert(
title != null || titleWidget != null,
"You must provide either title (String) or titleWidget (Widget).",
),
assert(
(title == null) != (titleWidget == null),
"You can not provide both title and titleWidget.",
),
assert(
body != null || bodyWidget != null,
"You must provide either body (String) or bodyWidget (Widget).",
),
assert(
(body == null) != (bodyWidget == null),
"You can not provide both body and bodyWidget.",
);