LCOV - code coverage report
Current view: top level - lib/models/messages - malformedmessage.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 13 0.0 %
Date: 2024-08-19 21:58:30 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:cwtch/models/message.dart';
       2             : import 'package:cwtch/widgets/malformedbubble.dart';
       3             : import 'package:cwtch/widgets/messagerow.dart';
       4             : import 'package:flutter/widgets.dart';
       5             : import 'package:provider/provider.dart';
       6             : 
       7             : class MalformedMessage extends Message {
       8             :   final MessageMetadata metadata;
       9           0 :   MalformedMessage(this.metadata);
      10             : 
      11           0 :   @override
      12             :   Widget getWidget(BuildContext context, Key key, int index) {
      13           0 :     return ChangeNotifierProvider.value(
      14           0 :         value: this.metadata,
      15           0 :         builder: (context, child) {
      16           0 :           return MessageRow(MalformedBubble(), index, key: key);
      17             :         });
      18             :   }
      19             : 
      20           0 :   @override
      21             :   Widget getPreviewWidget(BuildContext context, {BoxConstraints? constraints}) {
      22           0 :     return ChangeNotifierProvider.value(
      23           0 :         value: this.metadata,
      24           0 :         builder: (bcontext, child) {
      25           0 :           return MalformedBubble();
      26             :         });
      27             :   }
      28             : 
      29           0 :   @override
      30             :   MessageMetadata getMetadata() {
      31           0 :     return this.metadata;
      32             :   }
      33             : }

Generated by: LCOV version 1.14