ObjectExtension<T extends Object> extension

Extension for Object T.

on
  • T

Methods

when(Object? condition) → T?

Available on T, provided by the ObjectExtension extension

Returns this if condition evaluates to true, otherwise null.