Skip to content

Can we register different objects of the same type as LazySingleton ?  #125

@thechinkysight

Description

@thechinkysight

I want to do something like this :

final GetIt locator = GetIt.instance;

void setupLocator() {
  locator.registerLazySingleton<Section>(() => Section(title: "HomeView"));
  locator.registerLazySingleton<Section>(() => Section(title: "ProfileView"));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions