text static method

MarkerLabel text(
  1. String text, {
  2. Color? backgroundColor,
  3. Color textColor = Colors.white,
})

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,
  );
}