SlideDismissible constructor

SlideDismissible({
  1. Key? key,
  2. required Widget child,
  3. @Deprecated('use directions instead.') bool enable = true,
  4. DismissDirection? direction,
})

Implementation

SlideDismissible({
  Key? key,
  required this.child,
  @Deprecated('use directions instead.') bool enable = true,
  DismissDirection? direction,
})  : direction = direction ??
          (enable ? DismissDirection.horizontal : DismissDirection.none),
      super(key: key);