SlidableNotificationListener constructor

const SlidableNotificationListener({
  1. Key? key,
  2. SlidableNotificationCallback? onNotification,
  3. bool autoClose = true,
  4. required Widget child,
})

Implementation

const SlidableNotificationListener({
  Key? key,
  this.onNotification,
  this.autoClose = true,
  required this.child,
})  : assert(
        autoClose || onNotification != null,
        'Either autoClose or onNotification must be set.',
      ),
      super(key: key);