get<T extends Object> method
retrieves or creates an instance of a registered type T
depending on the registration
function used for this type or based on a name.
for factories you can pass up to 2 parameters param1,param2
they have to match the types
given at registration with registerFactoryParam()
Implementation
T get<T extends Object>(
{String? instanceName, dynamic param1, dynamic param2}) =>
locator.get<T>(
instanceName: instanceName,
param1: param1,
param2: param2,
);