createScope function

Scope createScope([
  1. bool detached = false
])

Creates an effects scope.

An effect scope is used to group and manage side effects in a structured way. The detached parameter determines if the scope is detached from its parent.

Implementation

public.Scope createScope([bool detached = false]) => impl.Scope(detached);