FastPageLayout constructor

FastPageLayout({
  1. Key? key,
  2. bool avoidOperatingSystemInterfaces = true,
  3. bool isViewScrollable = false,
  4. EdgeInsets? contentPadding,
  5. Duration? loadingTimeout,
  6. WidgetBuilder? contentBuilder,
  7. WidgetBuilder? loadingBuilder,
  8. WidgetBuilder? footerBuilder,
  9. Future<bool>? loadingFuture,
  10. WidgetBuilder? errorBuilder,
  11. Color? titleColor,
  12. String? titleText,
  13. Widget? footer,
  14. Widget? child,
})

Implementation

FastPageLayout({
  Key? key,
  this.avoidOperatingSystemInterfaces = true,
  this.isViewScrollable = false,
  this.contentPadding,
  this.loadingTimeout,
  this.contentBuilder,
  this.loadingBuilder,
  this.footerBuilder,
  this.loadingFuture,
  this.errorBuilder,
  this.titleColor,
  this.titleText,
  this.footer,
  this.child,
})  : assert(
        contentBuilder == null || child == null,
        'contentBuilder and child properties '
        'should not be initialized together',
      ),
      assert(
        footerBuilder == null || footer == null,
        'footerBuilder and footer properties '
        'should not be initialized together',
      ),
      super(key: key);