ToastStyleConfig constructor
const
ToastStyleConfig({
- EdgeInsetsGeometry margin = const EdgeInsets.only(left: 10, right: 10),
- EdgeInsetsGeometry padding = const EdgeInsets.fromLTRB(10, 15, 10, 15),
- AlignmentGeometry alignment = Alignment.topCenter,
- TextStyle textStyle = const TextStyle(decoration: TextDecoration.none, color: Colors.white, fontSize: 16),
- BoxDecoration decoration = const BoxDecoration(color: Colors.black38, borderRadius: BorderRadius.all(Radius.circular(30))),
- double? maxWidth,
- double? minWidth,
- 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,
});