LCOV - code coverage report
Current view: top level - entities/media_metadata - movie_media_metadata.dart Coverage Total Hit
Test: lcov_cleaned.info Lines: 0.0 % 10 0
Test Date: 2025-06-20 10:50:47 Functions: - 0 0

            Line data    Source code
       1              : import 'package:flutter_chrome_cast/enums/media_metadata_type.dart';
       2              : 
       3              : import 'cast_media_metadata.dart';
       4              : 
       5              : ///Describes a movie media artifact.
       6              : class GoogleCastMovieMediaMetadata extends GoogleCastMediaMetadata {
       7              :   /// Creates a movie media metadata instance.
       8            0 :   GoogleCastMovieMediaMetadata({
       9              :     this.title,
      10              :     this.subtitle,
      11              :     this.studio,
      12              :     super.images,
      13              :     this.releaseDate,
      14            0 :   }) : super(
      15              :           metadataType: GoogleCastMediaMetadataType.movieMediaMetadata,
      16              :         );
      17              : 
      18              :   ///   optional Descriptive title
      19              :   ///  of the content. Player can
      20              :   ///  independently retrieve title using
      21              :   ///  content_id or it can be given by
      22              :   ///  the sender in the Load message
      23              :   final String? title;
      24              : 
      25              :   ///optional Descriptive subtitle
      26              :   /// of the content. Player can
      27              :   /// independently retrieve title
      28              :   /// using content_id or it can be
      29              :   ///  given by the sender in
      30              :   /// the Load message
      31              :   final String? subtitle;
      32              : 
      33              :   ///optional Studio which released the content.
      34              :   /// Player can independently retrieve studio
      35              :   ///  using content_id or it can be given by
      36              :   ///  the sender in the Load message
      37              :   final String? studio;
      38              : 
      39              :   ///   optional Array of URL(s) to an image associated
      40              :   /// with the content. The initial value of the field
      41              :   /// can be provided by the sender in the Load message.
      42              :   ///  Should provide recommended sizes
      43              : 
      44              :   ///optional ISO 8601 date and time this content
      45              :   ///was released. Player can independently retrieve
      46              :   ///title using content_id or it can be given by the
      47              :   /// sender in the Load message
      48              :   final DateTime? releaseDate;
      49              : 
      50            0 :   @override
      51              :   Map<String, dynamic> toMap() {
      52            0 :     return {
      53            0 :       'metadataType': metadataType.value,
      54            0 :       'title': title,
      55            0 :       'subtitle': subtitle,
      56            0 :       'studio': studio,
      57            0 :       'images': images?.map((x) => x.toMap()).toList(),
      58            0 :       'releaseDate': releaseDate?.millisecondsSinceEpoch,
      59              :     };
      60              :   }
      61              : }
        

Generated by: LCOV version 2.3.1-1