removeAsset method

void removeAsset(
  1. AssetModel asset
)

Implementation

void removeAsset(AssetModel asset) {
  value = <AssetModel>[...value]
    ..removeWhere((AssetModel element) => element.id == asset.id);
}