MapviewWidget class
A Widget which provides the map. The widget asks for MapModel and ViewModel when needed and also destroys the models when not needed anymore. You cannot directly access the viewmodel and mapmodel to avoid access-problems after the lifecycle of the objects is due. Suggested method to access the objects is by attaching an Overlay to the viewModel. See ZoomOverlay for an example.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- MapviewWidget
Constructors
- MapviewWidget({Key? key, required DisplayModel displayModel, required CreateMapModel createMapModel, required CreateViewModel createViewModel, String? changeKey})
-
const
Properties
- changeKey → String?
-
A key to recognize changes. If for example the rendering should change also change that key.
Suggestion is to use
renderer.getRenderKey()
for this value. If the key changes the whole view will be rebuilt and the MapModel and ViewModel will be asked to recreate.final - createMapModel → CreateMapModel
-
final
- createViewModel → CreateViewModel
-
final
- displayModel → DisplayModel
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< StatefulWidget> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited