Standard<T> extension

variable?.let((v){

})

variable?.also((v){

})

variable?.run((){

})

on
  • T

Methods

also(void block(T)) → T
let<V>(V block(T)) → V
takeIf(bool predicate(T)) → T
variable?.takeIf((v){ return v != null })
takeUnless(bool predicate(T)) → T
variable?.takeUnless((v){ return v == null })