levitPut method

T levitPut()

Registers this instance immediately in the active LevitScope.

This is a fluent alternative to Ls.put.

// Example usage:

final service = MyService().levitPut();

Returns the registered instance.

Implementation

T levitPut() => Ls.put(() => this);