MobileMenuConfiguration constructor

MobileMenuConfiguration({
  1. required int configurationId,
  2. required TargetedWidgetSnapshot liftImage,
  3. WidgetSnapshot? previewImage,
  4. Size? previewSize,
  5. required MenuHandle handle,
  6. required Widget backgroundBuilder(
    1. double opacity
    ),
  7. required Widget previewBuilder(
    1. Size,
    2. WidgetSnapshot?
    ),
  8. required MobileMenuWidgetFactory menuWidgetBuilder,
  9. required IconThemeData iconTheme,
})

Implementation

MobileMenuConfiguration({
  required this.configurationId,
  required this.liftImage,
  this.previewImage,
  this.previewSize,
  required this.handle,
  required this.backgroundBuilder,
  required this.previewBuilder,
  required this.menuWidgetBuilder,
  required this.iconTheme,
}) : assert(previewImage == null || previewSize == null,
          'previewImage and previewSize are mutually exclusive');