get method

T get()

Gets the current value.

Same as accessing value property.

Example:

final count = Signal(5);
final v = count.get(); // Same as count.value

Implementation

T get() => value;