DefaultPickerStyle constructor

DefaultPickerStyle({
  1. bool haveRadius = false,
  2. String? title,
})

Implementation

DefaultPickerStyle({bool haveRadius = false, String? title}) {
  if (haveRadius) {
    headDecoration = const BoxDecoration(
      color: Colors.white,
      borderRadius: BorderRadius.vertical(top: Radius.circular(10)),
    );
  }
  if (title != null && title.isNotEmpty) {
    this.title = Center(
      child: Text(
        title,
        style: const TextStyle(color: Colors.grey, fontSize: 14),
      ),
    );
  }
}