unwrap method
Returns the non-reactive list value.
This method provides direct access to the underlying list. It's useful when you need to pass the list to APIs that don't work with Reactive.
Note: Changes to the returned list won't automatically trigger notifications.
You need to trigger a notification manually by reassigning the list to the
reactive value, for example: reactive.value = List.from(reactive.value).
Example:
final items = ['Item 1', 'Item 2'].reactive;
// Get the raw list
final rawList = items.unwrap();
print(rawList); // [Item 1, Item 2]
// Use with APIs that require a regular list
final sorted = items.unwrap()..sort();
Implementation
List<E> unwrap() {
return value;
}