blob: 2dca9a0060cfd58b313d6277767d73303ddb694f [file] [log] [blame]
// Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:analyzer_testing/src/mock_packages/mock_library.dart';
final widgetsIconLibrary = MockLibraryUnit('lib/src/widgets/icon.dart', r'''
import 'framework.dart';
class Icon extends StatelessWidget {
final IconData? icon;
const Icon(
this.icon, {
super.key,
double? size,
double? fill,
double? weight,
double? grade,
double? opticalSize,
Color? color,
List<Shadow>? shadows,
String? semanticLabel,
TextDirection? textDirection,
bool? applyTextScaling,
BlendMode? blendMode,
FontWeight? fontWeight,
}) : assert(fill == null || (0.0 <= fill && fill <= 1.0)),
assert(weight == null || (0.0 < weight)),
assert(opticalSize == null || (0.0 < opticalSize));
}
''');