present method

  1. @override
Widget present(
  1. TextureHandle frame, {
  2. BoxFit fit = BoxFit.fill,
  3. FilterQuality quality = FilterQuality.none,
})
override

Nothing was drawn, so there is nothing to show, and pretending otherwise would be worse than refusing: a test handed a blank widget could assert something about a frame that never existed. Nothing under test here reaches this — only an application does, once per frame.

Implementation

@override
Widget present(
  TextureHandle frame, {
  BoxFit fit = BoxFit.fill,
  FilterQuality quality = FilterQuality.none,
}) => throw UnsupportedError(
  'FakeBackend draws nothing, so there is nothing to present of $frame',
);