close method

void close([
  1. dynamic closeFn()?
])

Implementation

void close([dynamic Function()? closeFn]) {
  if ('closed' == readyState || 'closing' == readyState) return;
  readyState = 'closing';
  doClose(closeFn);
}