RadarEffectConfig class

Configuration for all visual parameters of a RadarEffect.

Every property has a sensible default. Use copyWith to override individual values, or pick a built-in preset: green, blue, dark, red.

RadarEffect(config: RadarEffectConfig.blue)
RadarEffect(config: RadarEffectConfig.green.copyWith(ringCount: 5))
Annotations

Constructors

RadarEffectConfig({Color ringColor = const Color(0xFFFFFFFF), Color bgColor1 = const Color.fromARGB(255, 66, 98, 9), Color bgColor2 = const Color.fromARGB(255, 43, 137, 0), Color bgColor3 = const Color(0xFFAAE040), int ringCount = 3, double speed = 1.0, double ringWidth = 0.008, double maxRadius = 0.45, double noiseAmount = 0.0, double ringOpacity = 0.7})
Creates a RadarEffectConfig.
const

Properties

bgColor1 → Color
Background gradient center color (brightest point).
final
bgColor2 → Color
Background gradient edge color (darkest point).
final
bgColor3 → Color
Third color blended into the background via noise clouds.
final
hashCode → int
The hash code for this object.
no setterinherited
maxRadius → double
Maximum ring radius as a factor of the shortest canvas side.
final
noiseAmount → double
Amount of cloudy noise patches in the background (0.0–1.0).
final
ringColor → Color
The color of the expanding rings.
final
ringCount → int
Number of concentric rings visible at any time.
final
ringOpacity → double
Opacity multiplier for the rings (0.0–1.0).
final
ringWidth → double
Ring stroke width in normalized UV space.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
speed → double
Animation speed multiplier.
final

Methods

copyWith({Color? ringColor, Color? bgColor1, Color? bgColor2, Color? bgColor3, int? ringCount, double? speed, double? ringWidth, double? maxRadius, double? noiseAmount, double? ringOpacity}) → RadarEffectConfig
Returns a copy with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

blue → const RadarEffectConfig
Deep blue / navy radar preset.
classic → const RadarEffectConfig
Premium cloudy green — matches the Booka-style screenshot.
dark → const RadarEffectConfig
Dark / monochrome radar preset.
green → const RadarEffectConfig
Classic green radar preset (simple gradient).
red → const RadarEffectConfig
Red / alert radar preset.