AutoLeadingButton constructor

const AutoLeadingButton({
  1. Key? key,
  2. Color? color,
  3. bool? showIfParentCanPop,
  4. bool showIfChildCanPop = true,
  5. bool ignorePagelessRoutes = false,
  6. AutoLeadingButtonBuilder? builder,
})

Default constructor

Implementation

const AutoLeadingButton({
  super.key,
  this.color,
  bool? showIfParentCanPop,
  this.showIfChildCanPop = true,
  this.ignorePagelessRoutes = false,
  this.builder,
})  : assert(color == null || builder == null),
      _showIfParentCanPop = showIfParentCanPop ?? true;