show static method

Future<void> show(
  1. BuildContext context, {
  2. required bool isEnabled,
  3. required int multiplier,
  4. required List<SavingsPot> availablePots,
  5. required ValueChanged<bool> onEnabledChanged,
  6. required ValueChanged<int> onMultiplierChanged,
  7. required ValueChanged<String?> onPotSelected,
  8. 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,
      ),
    );