StackedLeadingButton constructor

const StackedLeadingButton({
  1. Key? key,
  2. Color? color,
  3. @Deprecated('Use showIfParentCanPop') bool? showBackIfParentCanPop,
  4. bool? showIfParentCanPop,
  5. bool showIfChildCanPop = true,
  6. bool ignorePagelessRoutes = false,
  7. LeadingButtonBuilder? builder,
})

Implementation

const StackedLeadingButton({
  Key? key,
  this.color,
  @Deprecated('Use showIfParentCanPop') bool? showBackIfParentCanPop,
  bool? showIfParentCanPop,
  this.showIfChildCanPop = true,
  this.ignorePagelessRoutes = false,
  this.builder,
})  : assert(color == null || builder == null),
      _showIfParentCanPop =
          showIfParentCanPop ?? showBackIfParentCanPop ?? true,
      super(key: key);