execute<R> abstract method
- @Deprecated('This method will be removed in 0.19.0. Propagate [Context] as an ' 'argument to [fn] and call [fn] directly or use ' '[(context as ZoneContext).run((_) => fn(this))] instead.')
- R fn()
Execute a function fn
within this Context and return its result.
Implementation
@Deprecated(
'This method will be removed in 0.19.0. Propagate [Context] as an '
'argument to [fn] and call [fn] directly or use '
'[(context as ZoneContext).run((_) => fn(this))] instead.')
R execute<R>(R Function() fn);