removeFromArray static method

void removeFromArray(
  1. dynamic array,
  2. dynamic object
)

Implementation

static void removeFromArray( array, object) {
  if(array == null) return;
  final k = array.indexOf(object);
  if ( k > - 1 ){
    array.removeAt(k);
  }
}