LevitScope.root constructor

LevitScope.root([
  1. String? name
])

Creates a new root LevitScope.

The root scope has no parent and typically lives for the duration of the app.

name defaults to 'root' if not provided.

Implementation

factory LevitScope.root([String? name]) => LevitScope._(name ?? 'root');