SuraActionSheet<T> constructor

const SuraActionSheet<T>({
  1. Key? key,
  2. required Widget builder(
    1. T option,
    2. int index
    ),
  3. required String title,
  4. required List<T> options,
  5. String cancelText = "Cancel",
  6. void onSelected(
    1. T option,
    2. int index
    )?,
})

A cupertino action sheet that use to create an option selector

Implementation

const SuraActionSheet({
  Key? key,
  required this.builder,
  required this.title,
  required this.options,
  this.cancelText = "Cancel",
  this.onSelected,
}) : super(key: key);