LCOV - code coverage report
Current view: top level - src - item.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 3 3 100.0 %
Date: 2020-03-09 19:58:44 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:flutter/cupertino.dart';
       2             : 
       3             : /// Tab item used for [ConvexAppBar].
       4             : class TabItem<T> {
       5             :   /// Tab text.
       6             :   final String title;
       7             : 
       8             :   /// IconData or Image.
       9             :   ///
      10             :   /// ![](https://github.com/hacktons/convex_bottom_bar/raw/master/doc/appbar-image.gif)
      11             :   final T icon;
      12             : 
      13             :   /// Optional if not provided ,[icon] is used.
      14             :   final T activeIcon;
      15             : 
      16             :   /// Whether icon should blend with color.
      17             :   final bool blend;
      18             : 
      19             :   /// Create item
      20           1 :   const TabItem({
      21             :     this.title,
      22             :     @required this.icon,
      23             :     this.activeIcon,
      24             :     bool isIconBlend,
      25           3 :   })  : assert(icon is IconData || icon is Widget,
      26             :             "TabItem only support IconData and Widget"),
      27           1 :         blend = isIconBlend ?? (icon is IconData);
      28             : }

Generated by: LCOV version 1.14