swift<T> method

ControllerRx<T> swift<T>(
  1. T value, {
  2. String? name,
})

Create a swift value that's automatically read-only from views Use this instead of the global swift() function in controllers

Implementation

ControllerRx<T> swift<T>(T value, {String? name}) {
  return ControllerRx<T>(value, this, name: name);
}