navigate method
Implementation
@override
Future<Country?> navigate(
BuildContext context,
FlagCache flagCache,
) {
return showModalBottomSheet<Country>(
context: context,
builder: (_) => SizedBox(
height: height ?? MediaQuery.of(context).size.height - 90,
child: _getCountrySelector(
onCountrySelected: (country) => Navigator.pop(context, country),
flagCache: flagCache,
),
),
isScrollControlled: true,
);
}