make static method Null safety

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

Encryption method

Implementation

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