show static method
Future<void>
show(
- BuildContext context, {
- required bool isEnabled,
- required int multiplier,
- required List<
SavingsPot> availablePots, - required ValueChanged<
bool> onEnabledChanged, - required ValueChanged<
int> onMultiplierChanged, - required ValueChanged<
String?> onPotSelected, - String? selectedPotId,
Shows the sheet as a modal bottom sheet.
Implementation
static Future<void> show(
BuildContext context, {
required bool isEnabled,
required int multiplier,
required List<SavingsPot> availablePots,
required ValueChanged<bool> onEnabledChanged,
required ValueChanged<int> onMultiplierChanged,
required ValueChanged<String?> onPotSelected,
String? selectedPotId,
}) =>
showModalBottomSheet<void>(
context: context,
isScrollControlled: true,
backgroundColor: Colors.transparent,
builder: (_) => BankRoundUpSettingsSheet(
isEnabled: isEnabled,
multiplier: multiplier,
availablePots: availablePots,
selectedPotId: selectedPotId,
onEnabledChanged: onEnabledChanged,
onMultiplierChanged: onMultiplierChanged,
onPotSelected: onPotSelected,
),
);