compareDomainValueToViewport method

  1. @override
int compareDomainValueToViewport(
  1. D domain
)
override

Compare domain to the viewport.

0 if the domain is in the viewport. 1 if the domain is to the right of the viewport. -1 if the domain is to the left of the viewport.

Implementation

@override
int compareDomainValueToViewport(D domain) {
  return scale!.compareDomainValueToViewport(domain);
}