Miniplayer constructor

const Miniplayer({
  1. Key? key,
  2. required double minHeight,
  3. required double maxHeight,
  4. required MiniplayerBuilder builder,
  5. Curve curve = Curves.easeOut,
  6. double elevation = 0,
  7. Color backgroundColor = const Color(0x70000000),
  8. ValueNotifier<double>? valueNotifier,
  9. Duration duration = const Duration(milliseconds: 300),
  10. Function? onDismiss,
  11. Function? onDismissed,
  12. MiniplayerController? controller,
})

Implementation

const Miniplayer({
  Key? key,
  required this.minHeight,
  required this.maxHeight,
  required this.builder,
  this.curve = Curves.easeOut,
  this.elevation = 0,
  this.backgroundColor = const Color(0x70000000),
  this.valueNotifier,
  this.duration = const Duration(milliseconds: 300),
  this.onDismiss,
  this.onDismissed,
  this.controller,
}) : super(key: key);