get_rx/src/rx_types/rx_types library
The rx_types
library provides a collection of reactive programming utilities
for managing state and building reactive components in Flutter applications.
This library includes classes and utilities for creating and managing reactive objects such as Rx (reactive) variables, RxLists, RxMaps, and RxSets.
-
Rx: The base class for reactive objects that enables listening to changes and updating state reactively.
-
RxList: A reactive list that allows listening to changes in the list and automatically updating UI components when the list changes.
-
RxMap: A reactive map that enables listening to changes in the map and automatically updating UI components when the map changes.
-
RxSet: A reactive set that provides the ability to listen to changes in the set and update UI components reactively.
This library is part of the GetX state management solution for Flutter, providing a simple and efficient way to manage application state and build reactive user interfaces.
Classes
-
Rx<
T> -
A foundation class that wraps a value of type
T
in a reactive container. This class provides the ability to track and manage the state of the wrapped value. - RxBool
- An Rx object for managing boolean values.
- RxDouble
- A reactive extension of double type, enabling reactive operations on double values.
- RxInt
- A reactive extension of int type, enabling reactive operations on integer values.
-
RxInterface<
T> -
This class is the foundation for all reactive (Rx) classes that makes Get
so powerful.
This interface is the contract that
[_RxImpl]<T>
uses in all it's subclass. - RxJsonUtils
- Utility functions for safer JSON conversion in reactive classes.
-
RxList<
E> -
A reactive list that extends functionality similar to
List<T>
and provides automatic notifications on changes. -
RxMap<
K, V> -
Rxn<
T> -
A specialized version of Rx for nullable types (
T?
). - RxnBool
- An Rx object for managing nullable boolean values.
- RxnDouble
- A reactive extension of double? type, enabling reactive operations on nullable double values.
- RxnInt
- A reactive extension of int? type, enabling reactive operations on nullable integer values.
- RxnNum
- A reactive extension of num? type, enabling reactive operations on nullable numeric values.
- RxnString
-
Rx class for
String
Type. - RxNum
- A reactive extension of num type, enabling reactive operations on numeric values.
-
RxSet<
E> - RxString
-
Rx class for
String
Type.
Mixins
-
RxObjectMixin<
T> -
global object that registers against
GetX
andObx
, and allows the reactivity of thoseWidgets
and Rx values.
Extensions
- BoolExtension on bool
- Extension on bool providing methods to create reactive booleans.
- DoubleExtension on double
- Extension on double providing methods to create reactive doubles.
- IntExtension on int
- Extension on int providing methods to create reactive integers.
-
ListExtension
on List<
E> -
MapExtension
on Map<
K, V> -
RxBoolExt
on Rx<
bool> - Extension on Rx<bool> providing methods for boolean operations.
-
RxDoubleExt
on Rx<
double> - Extension providing additional functionality for double values wrapped in an Rx object.
-
RxIntExt
on Rx<
int> - Extension providing additional functionality for int values wrapped in an Rx object.
-
RxnBoolExt
on Rx<
bool?> - Extension on Rx<bool?> providing methods for nullable boolean operations.
-
RxnDoubleExt
on Rx<
double?> - Extension providing additional functionality for nullable double values wrapped in an Rx object.
-
RxnIntExt
on Rx<
int?> - Extension providing additional functionality for nullable int values wrapped in an Rx object.
-
RxnNumExt
on Rx<
T?> - Extension providing additional functionality for nullable numeric values wrapped in an Rx object.
-
RxnStringExt
on Rx<
String?> -
RxNumExt
on Rx<
T> - Extension providing additional functionality for numeric values wrapped in an Rx object.
-
RxStringExt
on Rx<
String> - Extension methods for Rx<String> to provide additional functionality.
- RxT on T
-
Generic extension for creating reactive instances of any custom type
T
. - RxTnew on Object
-
A new method to replace the old
.obs
getter. This method avoids conflicts with Dart 3 features by using contextual type inference to determineT
. -
SetExtension
on Set<
E> - StringExtension on String
- Extension on String providing methods to create reactive strings.
Exceptions / Errors
- ObxError
- Represents an error specific to the use of GetX or Obx.