filled static method

ButtonStyle filled({
  1. double? radius,
  2. double? minimumSize,
  3. double? elevation,
  4. Color? background,
  5. double? height,
  6. double? width,
})

Implementation

static ButtonStyle filled(
    {double? radius,
    double? minimumSize,
    double? elevation,
    Color? background,
    double? height,
    double? width}) {
  return ElevatedButton.styleFrom(
    shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(radius ?? 20.0)),
    minimumSize: Size(width ?? double.infinity, height ?? 36),
    backgroundColor: background ?? colorPrimary,
    elevation: elevation,
  );
}