onAttachChange method

void onAttachChange(
  1. bool b
)

Implementation

void onAttachChange(bool b) {
//    print('{$code}:change{$b}');
  showing = b;
  if (!showing) {
    if (lastPosition != null) detach(lastPosition!, fake: true);
  } else {
    if (interceptedAttachPosition != null) attach(interceptedAttachPosition!);
  }
}