call method

  1. @override
void call(
  1. BuildContext context
)
override

Implementation

@override
call(context) {
  ScaffoldMessenger.of(context).showSnackBar(SnackBar(
    content: Text(
      Translations.of(context)?.text(message ?? '') ?? '',
      style: TextStyle(
        color: textColor ?? Theme.of(context).colorScheme.onSurface,
      ),
    ),
    backgroundColor: color ?? Theme.of(context).colorScheme.secondaryContainer,
  ));
}