levitPut method

T levitPut()

Registers this instance in the active LevitScope.

This is a fluent shortcut for Ls.put.

// Example usage:

final service = MyService().levitPut();

Returns the registered instance.

Implementation

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