MotionToastContent constructor

MotionToastContent({
  1. Key? key,
  2. required Color color,
  3. required Widget description,
  4. required IconData? icon,
  5. required double iconSize,
  6. required double radius,
  7. required Widget? title,
  8. required bool withAnimation,
  9. required bool displaySideBar,
  10. required EdgeInsetsGeometry contentPadding,
  11. bool isReversed = false,
})

Implementation

MotionToastContent({
  Key? key,
  required this.color,
  required this.description,
  required this.icon,
  required this.iconSize,
  required this.radius,
  required this.title,
  required this.withAnimation,
  required this.displaySideBar,
  required this.contentPadding,
  bool isReversed = false,
}) : super(key: key) {
  _contentLayoutType = ContentLayoutType.values[isReversed ? 1 : 0];
}