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

          Line data    Source code
       1             : library flame;
       2             : 
       3             : import 'package:flutter/services.dart';
       4             : 
       5             : import 'assets/assets_cache.dart';
       6             : import 'assets/images.dart';
       7             : import 'device.dart';
       8             : 
       9             : /// This class holds static references to some useful objects to use in your game.
      10             : ///
      11             : /// You can access shared instances of [AssetsCache], [Images] and [Device].
      12             : /// Most games should need only one instance of each, and should use this class to manage that reference.
      13             : class Flame {
      14             :   // Flame asset bundle, defaults to root
      15             :   static AssetBundle? _bundle;
      16           0 :   static AssetBundle get bundle => _bundle ?? rootBundle;
      17             : 
      18             :   /// Access a shared instance of [AssetsCache] class.
      19           0 :   static AssetsCache assets = AssetsCache();
      20             : 
      21             :   /// Access a shared instance of the [Images] class.
      22          15 :   static Images images = Images();
      23             : 
      24             :   /// Access a shared instance of the [Device] class.
      25           0 :   static Device device = Device();
      26             : }

Generated by: LCOV version 1.15