get<T> static method
//
//
//
Returns object of requested type by given key
or by Type from ControlFactory.
Given args
are passed to Initializable.init if new instance of object is constructed.
If object is not found in internal store, then factory tries to initialize new one via ControlFactory.init. When initialized object is LazyControl then this object is stored into Factory.
Returns concrete object or null.
Implementation
/// Returns object of requested type by given [key] or by [Type] from [ControlFactory].
/// Given [args] are passed to [Initializable.init] if new instance of object is constructed.
///
/// If object is not found in internal store, then factory tries to initialize new one via [ControlFactory.init].
/// When initialized object is [LazyControl] then this object is stored into Factory.
///
/// Returns concrete object or null.
static T? get<T>({dynamic key, dynamic args, bool withInjector = true}) =>
factory.get<T>(key: key, args: args, withInjector: withInjector);