runNewWindowInstance method
Initiates a new instance of the app in a new window (useful for multi-window scenarios).
args
: A list of arguments.
Implementation
void runNewWindowInstance(List<String> args) {
runApp(
BlocProvider(
create: (context) => DesktopThemeCubit(),
child: BlocBuilder<DesktopThemeCubit, DesktopThemeState>(
builder: (context, theme) => interceptorScreen(
isDarkTheme: theme.isDarkTheme,
isMultiWindow: true,
),
),
),
);
}