init(requiring:)

Creates an environment property that reads the value from the given TaskLocal by force-unwrapping an optional.

Environment.swift:39
init(requiring taskLocal: TaskLocal<T?>)

Parameters

taskLocal

The TaskLocal to read the value from.

Note: Is the value is nil during rendering, a fatal error will be thrown.