toString method

  1. @override
String toString()
override

Always throws.

Interpolating an Rx ('$count') is virtually always a bug — the intent is '${ref.watch(count)}', which also subscribes the surrounding Obx.

Implementation

@override
String toString() => throw AssertionError("Rx is not supposed to use directly in interpolation, use ref.watch()");