show method
Implementation
@override
Future<IsoCode?> show(BuildContext context) {
final effectiveBorderRadius = borderRadius ??
const BorderRadius.only(
topLeft: Radius.circular(16),
topRight: Radius.circular(16),
);
return showModalBottomSheet<IsoCode>(
context: context,
shape: RoundedRectangleBorder(
borderRadius: effectiveBorderRadius,
),
builder: (_) => DraggableScrollableSheet(
initialChildSize: initialChildSize,
minChildSize: minChildSize,
maxChildSize: maxChildSize,
expand: false,
builder: (context, scrollController) => _getCountrySelectorSheet(
inputContext: context,
onCountrySelected: (country) => Navigator.pop(context, country),
scrollController: scrollController,
),
),
useRootNavigator: useRootNavigator,
isScrollControlled: true,
);
}