The size of the screen is in logical pixels.
Scale of 1 means original size.
typedef ScaleFactorCallback = double Function(Size deviceSize);