provider<E> function
Implementation
Provider<E> provider<E>(LifecycleAwareBuilder<E> create,
{bool lazy = true, Widget? child}) =>
Provider<E>(
create: (_) => trying(create),
dispose: (context, final value) {
if (value is LifecycleAware) value.dispose();
},
lazy: lazy,
child: child,
);