compact method

JarArray<T> compact()

Implementation

JarArray<T> compact() {
  return transform((value) =>
      value == null ? null : value.where((e) => e != null).toList());
}