RxAnyExtension<T> extension

============================== Universal .obs Extension

Converts any value into an RxState<T>.

This is the primary entry point for creating reactive state.

Example:

final count = 0.obs;
final name = "Tom".obs;
final list = [1, 2, 3].obs;
on
  • T

Properties

obs RxState<T>

Available on T, provided by the RxAnyExtension extension

将当前对象包装成 RxState<T>
no setter