| LCOV - code coverage report | ||||||||||||||||||||||
|
||||||||||||||||||||||
Line data Source code 1 : import 'package:flutter/material.dart'; 2 : 3 : extension Darker on Color { 4 0 : Color darkerShade([double factor = 0.2]) { 5 0 : assert(factor >= 0 && factor <= 1, 'Factor must be between 0 and 1'); 6 0 : return Color.fromARGB( 7 0 : alpha, 8 0 : (red * (1 - factor)).round().clamp(0, 255), 9 0 : (green * (1 - factor)).round().clamp(0, 255), 10 0 : (blue * (1 - factor)).round().clamp(0, 255), 11 : ); 12 : } 13 : } |
| Generated by: LCOV version 2.3-1 |