brightness property Null safety

Brightness brightness
final

The brightness of the overall theme of the application for the maps widgets.

If brightness is not specified, then based on the Theme.of(context).brightness, brightness for maps widgets will be applied.

Also refer Brightness.

Widget build(BuildContext context) {
 return Scaffold(
     body: Center(
       child: SfTheme(
         data: SfThemeData(
           mapsThemeData: SfMapsThemeData(
             brightness: Brightness.dark
           )
         ),
         child: SfMaps(),
       ),
     )
  );
}

Implementation

final Brightness brightness;