deleteAsset method

void deleteAsset(
  1. String id
)

Implementation

void deleteAsset(String id) {
  allAssetEntity.removeWhere((element) => id == element.id);
  notifyListeners();
}