FuiPageHead constructor

const FuiPageHead({
  1. Key? key,
  2. required String title,
  3. String? subtitle,
  4. Widget? trailing,
  5. List<Widget> actions = const [],
  6. bool showNavigation = true,
  7. VoidCallback? onNavigationPressed,
})

Implementation

const FuiPageHead({
  super.key,
  required this.title,
  this.subtitle,
  this.trailing,
  this.actions = const [],
  this.showNavigation = true,
  this.onNavigationPressed,
}) : assert(
       trailing == null || actions.length == 0,
       'Use either trailing or actions, not both.',
     );