success method
Implementation
ButtonStyle success() {
return copyWith(
backgroundColor: WidgetStateProperty.all(
Color(0xFF28a745),
), // Bootstrap success green
foregroundColor: WidgetStateProperty.all(Colors.white),
shape: WidgetStateProperty.all(
RoundedRectangleBorder(borderRadius: BorderRadius.circular(4.0)),
),
);
}