GlassNavBarRegistration constructor

const GlassNavBarRegistration({
  1. required List<GlassBarItem> actions,
  2. List<GlassBarItem> leading = const <GlassBarItem>[],
  3. required bool showsBackButton,
  4. VoidCallback? onBack,
  5. LiquidGlassSettings? buttonSettings,
  6. double? buttonSize,
  7. double? toolbarHeight,
  8. @Deprecated('A hoisted sheet item presents out of the hoisted capsule; the tap is ' 'no longer handed back.') void presentSheet(
    1. GlassBarSheetItem item
    )?,
  9. double? horizontalInset,
  10. bool platformViewBackdrop = false,
  11. GlassLargeTitleController? largeTitleController,
  12. double? stripRowTop,
})

Creates a registration describing one route's pinned bar chrome.

Implementation

const GlassNavBarRegistration({
  required this.actions,
  this.leading = const <GlassBarItem>[],
  required this.showsBackButton,
  this.onBack,
  this.buttonSettings,
  this.buttonSize,
  this.toolbarHeight,
  @Deprecated(
    'A hoisted sheet item presents out of the hoisted capsule; the tap is '
    'no longer handed back.',
  )
  this.presentSheet,
  this.horizontalInset,
  this.platformViewBackdrop = false,
  this.largeTitleController,
  this.stripRowTop,
})  : assert(
        buttonSize == null || buttonSize > 0,
        'buttonSize must be positive',
      ),
      assert(
        toolbarHeight == null || toolbarHeight >= 0,
        'toolbarHeight must not be negative',
      );