SnackBarUtil class
A utility class for displaying SnackBar messages in Flutter.
提供便捷方法来显示不同样式的 SnackBar 消息。
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
- 
  error(BuildContext context, String message, {Duration duration = _defaultShowDuration}) → void 
- Displays an error-themed SnackBar message.
- 
  show(BuildContext context, String message, {Duration duration = _defaultShowDuration}) → void 
- Displays a plain SnackBar message.
- 
  success(BuildContext context, String message, {Duration duration = _defaultShowDuration}) → void 
- Displays a success-themed SnackBar message.
- 
  warning(BuildContext context, String message, {Duration duration = _defaultShowDuration}) → void 
- Displays a warning-themed SnackBar message.