ToastStyleConfig constructor

const ToastStyleConfig({
  1. EdgeInsetsGeometry margin = const EdgeInsets.only(left: 10, right: 10),
  2. EdgeInsetsGeometry padding = const EdgeInsets.fromLTRB(10, 15, 10, 15),
  3. AlignmentGeometry alignment = Alignment.topCenter,
  4. TextStyle textStyle = const TextStyle(decoration: TextDecoration.none, color: Colors.white, fontSize: 16),
  5. BoxDecoration decoration = const BoxDecoration(color: Colors.black38, borderRadius: BorderRadius.all(Radius.circular(30))),
  6. double? maxWidth,
  7. double? minWidth,
  8. List<BoxShadow>? boxShadow,
})

Implementation

const ToastStyleConfig({
  this.margin = const EdgeInsets.only(left: 10, right: 10),
  this.padding = const EdgeInsets.fromLTRB(10, 15, 10, 15),
  this.alignment = Alignment.topCenter,
  this.textStyle = const TextStyle(
    decoration: TextDecoration.none,
    color: Colors.white,
    fontSize: 16,
  ),
  this.decoration = const BoxDecoration(
    color: Colors.black38,
    borderRadius: BorderRadius.all(Radius.circular(30)),
  ),
  this.maxWidth,
  this.minWidth,
  this.boxShadow,
});