Topsheet constructor

const Topsheet({
  1. Key? key,
  2. bool? isBackButtonEnabled,
  3. String? greetingIconPath,
  4. String? greetingText,
  5. required String headerText,
  6. String? subheaderText,
  7. bool preserveHeaderLineBreaks = true,
  8. Color? backgroundColor,
  9. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(vertical: 56, horizontal: 24.0),
  10. Widget? customContent,
})

Implementation

const Topsheet({
  super.key,
  this.isBackButtonEnabled,
  this.greetingIconPath,
  this.greetingText,
  required this.headerText,
  this.subheaderText,
  this.preserveHeaderLineBreaks = true,
  this.backgroundColor,
  this.padding = const EdgeInsets.symmetric(vertical: 56, horizontal: 24.0),
  this.customContent,
});