navigate method

  1. @override
Future<Country?> navigate(
  1. BuildContext context,
  2. FlagCache flagCache
)
override

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,
  );
}