scope_function library
Extensions
- ScopeFunction on T
Functions
-
withThe<
T, R> (T it, R block(T it)) → R -
Calls the specified function
block
with the givenit
as its argument and returns its result. Since Receiver not supported in Dart, you need call the argument object using dot notation. Although this function works same as therun
function,we still implement it for better semantic reading.