whenDefined 方法

Future whenDefined(
  1. String name
)

实现

Future whenDefined(String name) =>
    promiseToFuture(JS("", "#.whenDefined(#)", this, name));