text static method
Create a label with custom text
Implementation
static MarkerLabel text(
String text, {
Color? backgroundColor,
Color textColor = Colors.white,
}) {
return MarkerLabel(
label: text,
backgroundColor: backgroundColor ?? const Color(0xB3000000),
textColor: textColor,
);
}