errorIcon function
dynamic
errorIcon()
Success icon
Implementation
errorIcon() {
return CircleAvatar(
backgroundColor: Colors.red[300],
radius: 16,
child: Icon(
Icons.clear,
color: Colors.white,
),
);
}