getStack static method

ViewModelStack<ViewModel> getStack(
  1. Type type
)

获取或创建 ViewModelStack

Implementation

static ViewModelStack getStack(Type type) {
  final name = type.toString();
  return getIt.registerSingletonIfAbsent<ViewModelStack>(
    () => ViewModelStack._(),
    instanceName: name,
  );
}