lastKeyBefore method Null safety

K lastKeyBefore(
  1. K key,
  2. {K orElse(
      )?}
    )

    Get the last key in the map for which the key/value pair is strictly smaller than that of key.

    Implementation

    K lastKeyBefore(K key, {K Function()? orElse});