FsSetTheme function

dynamic FsSetTheme(
  1. dynamic context,
  2. String theme
)

Implementation

FsSetTheme(context, String theme) {
  Provider.of<ThemeColorSax>(context, listen: false)
      .setTheme(theme.toLowerCase() == 'dark');
}