FlutterLogoDecoration constructor Null safety
- {Color textColor = const Color(0xFF757575),
- FlutterLogoStyle style = FlutterLogoStyle.markOnly,
- EdgeInsets margin = EdgeInsets.zero}
Creates a decoration that knows how to paint Flutter's logo.
The style controls whether and where to draw the "Flutter" label. If one is shown, the textColor controls the color of the label.
The textColor, style, and margin arguments must not be null.
Implementation
const FlutterLogoDecoration({
this.textColor = const Color(0xFF757575),
this.style = FlutterLogoStyle.markOnly,
this.margin = EdgeInsets.zero,
}) : assert(textColor != null),
assert(style != null),
assert(margin != null),
_position = identical(style, FlutterLogoStyle.markOnly) ? 0.0 : identical(style, FlutterLogoStyle.horizontal) ? 1.0 : -1.0,
_opacity = 1.0;