compost static method Null safety

List<int> compost(
  1. {required List<int> data,
  2. required int password}
)

Decryption method

Implementation

static List<int> compost({
    required List<int> data,
    required int password,
  }){
  List<int> decrypted = [];
  for(int i = 0; i < data.length; i++){
    decrypted.add(data[i] - password);
  }
  return decrypted;
}