tryRemoveWhere method

void tryRemoveWhere(
  1. int element
)

same behavior as removeWhere but it is null safe which means it do nothing when List return isEmptyOrNull to true.

Implementation

void tryRemoveWhere(int element) =>
    isEmptyOrNull ? null : this!.removeWhere((element) => false);