LCOV - code coverage report
Current view: top level - lib/src/extensions - rectangle.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 6 6 100.0 %
Date: 2021-08-10 15:50:53 Functions: 0 0 -

          Line data    Source code
       1             : import 'dart:math' show Rectangle;
       2             : import 'dart:ui' show Rect;
       3             : 
       4             : extension RectangleExtension on Rectangle {
       5             :   /// Converts this math [Rectangle] into an ui [Rect].
       6           1 :   Rect toRect() {
       7           1 :     return Rect.fromLTWH(
       8           2 :       left.toDouble(),
       9           2 :       top.toDouble(),
      10           2 :       width.toDouble(),
      11           2 :       height.toDouble(),
      12             :     );
      13             :   }
      14             : }

Generated by: LCOV version 1.15