BottomSheets class

A utility class for displaying various types of bottom sheets in the application.

Currently, it provides a static method to show a warning bottom sheet with customizable title, message, button text, optional note, and styling options. The bottom sheet can also include a cancel button and supports configuration for dismissibility and drag behavior.

Example usage:

BottomSheets.warningBottomSheet(
  title: 'Warning',
  message: 'Are you sure you want to proceed?',
  buttonText: 'Confirm',
  onPressed: () {
    // Handle confirmation
  },
);

Constructors

BottomSheets()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

warningBottomSheet({required String title, required String message, required String buttonText, String? note, bool cancelButtonEnable = true, dynamic onPressed()?, Color color = Colors.redAccent, bool isDismissible = false, bool enableDrag = false}) → void