ratioToInt property

int get ratioToInt

Implementation

int get ratioToInt {

  final bool isAndroid = Platform.isAndroid;

  final double pixelRatio =
      PlatformDispatcher.instance.views.first.devicePixelRatio;
  return (this * (isAndroid ? pixelRatio : 1.0)).toInt();
}