storyBookHome function Null safety

dynamic storyBookHome(
  1. {List<Map<String, CupertinoThemeData>>? listCupertinoThemeData,
  2. List<Map<String, ThemeData>>? listThemeData,
  3. String? title,
  4. List<Locale>? supportedLocales,
  5. Widget? homeStory,
  6. bool isCupertino = false,
  7. required List<StoryBookModel> listStoryBookModel,
)

Implementation

storyBookHome(
    {List<Map<String, CupertinoThemeData>>? listCupertinoThemeData,
    List<Map<String, ThemeData>>? listThemeData,
    String? title,
    List<Locale>? supportedLocales,
    Widget? homeStory,
    bool isCupertino = false,
    required List<StoryBookModel> listStoryBookModel,
    Widget? logo}) {
  return ModularApp(
    module: HomeModule(listStoryBookModel, homeStory),
    child: HomeWidget(
      title: title ?? 'Storybook',
      logo:logo ?? SizedBox(),
      isCupertino: isCupertino,
      listThemeData: listThemeData ??
          [
            {'Default': ThemeData()}
          ],
      supportedLocales: supportedLocales ?? [Locale('pt', 'BR')],
    ),
  );
}