close method

void close()

Implementation

void close()
{
  if (state != null) state!.onClose();
}