SILComingSoonPage constructor

SILComingSoonPage({
  1. Key? key,
  2. required String title,
  3. required String description,
  4. required String comingSoonText,
  5. String? svgPath,
  6. String? imagePath,
  7. bool showAppbar = false,
  8. PreferredSizeWidget? appBar,
  9. bool showBottomNavigationBar = false,
  10. Widget? bottomNavigationBar,
  11. bool? isTabletWithDrawer = false,
})

Implementation

SILComingSoonPage(
    {Key? key,
    required this.title,
    required this.description,
    required this.comingSoonText,
    this.svgPath,
    this.imagePath,
    this.showAppbar = false,
    this.appBar,
    this.showBottomNavigationBar = false,
    this.bottomNavigationBar,
    this.isTabletWithDrawer = false})
    : assert(() {
        if (showAppbar && appBar == null) {
          throw Exception('appBar should not be null if showAppBar is true');
        }
        return true;
      }()),
      assert(() {
        if (showBottomNavigationBar && appBar == null) {
          throw Exception(
              'bottomNavigationBar should not be null if showBottomNavigationBar is true');
        }
        return true;
      }()),
      super(key: key);