PlexHighlightWidget constructor

PlexHighlightWidget({
  1. Key? key,
  2. required Widget child,
  3. Color? tagBgColor,
  4. double size = 10,
  5. Alignment alignment = Alignment.topRight,
  6. bool enabled = true,
})

Implementation

PlexHighlightWidget({super.key, required this.child, this.tagBgColor, this.size = 10, this.alignment = Alignment.topRight, this.enabled = true}) {
  if(![Alignment.topRight, Alignment.topLeft,Alignment.bottomLeft, Alignment.bottomRight].contains(alignment)) {
    throw Exception("Alignment must be one of the following lisr: [Alignment.topRight, Alignment.topLeft,Alignment.bottomLeft, Alignment.bottomRight]");
  }
  position = calculatePosition(alignment);
}