'A value of type 'List<ClienteModel>' can't be assigned to a variable of type 'RxList<ClienteModel>'

A value of type 'List' can't be assigned to a variable of type 'RxList'. Try changing the type of the variable, or casting the right-hand type to 'RxList'.



Solution 1:[1]

  List initial = [];
  RxList data= RxList(initial);

use like this

  List<clientModal> clientmodal = [] ;
  RxList<clientModal> data = RxList(initial as List<clientModal> );

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1