filled static method
Returns a filled background style with optional border radius and color.
Implementation
static InputDecoration filled({
required String label,
String? hintText,
String? errorText,
Widget? prefixIcon,
Widget? suffixIcon,
double? borderRadius,
Color? fillColor,
}) {
return _baseDecoration(
label: label,
hintText: hintText,
errorText: errorText,
prefixIcon: prefixIcon,
suffixIcon: suffixIcon,
filled: true,
fillColor: fillColor ?? defaultFillColor,
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(borderRadius ?? 10),
),
);
}