showConfiguredSnackbar function
Example: Using the configured defaults
Implementation
void showConfiguredSnackbar(BuildContext context) {
// This will use all the configured defaults
SavePointsSnackbar.show(
context,
title: 'Success!',
subtitle: 'This uses configured defaults',
);
// You can still override specific properties
SavePointsSnackbar.show(
context,
title: 'Custom',
subtitle: 'Overrides default duration',
duration: const Duration(seconds: 5), // Overrides config
);
}