initialValue method

  1. @override
T? initialValue()
override

Returns the initial value for this LocalThread.

This method is called when a new LocalThread is created and no value has been set yet. The default implementation returns null, but you can override it to provide a custom initial value.

Implementation

@override
T? initialValue() => supplier();