ArcGISLocalSceneView class final

A widget that displays an ArcGISScene with a local SceneViewingMode and associated data.

The ArcGISLocalSceneView widget can only be used within a widget that has a bounded size. Using it with unbounded size will cause the application to throw an exception. For example, to use an ArcGISLocalSceneView within an unbounded size widget, such as a Column, Row, ListView, SingleChildScrollView, or Stack, etc., you must first wrap the ArcGISLocalSceneView in a bounded widget, such as Expanded, to provide it with proper bounds.

Here is a simple example:

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Column(
        children: [
          Expanded(
            child: ArcGISLocalSceneView(
              controllerProvider: () {
                return ArcGISLocalSceneView.createController()
                  ..arcGISScene = ArcGISScene.withViewingModeAndBasemapStyle(
                    viewingMode: SceneViewingMode.local,
                    basemapStyle: BasemapStyle.arcGISImagery,
                  );
             },
            ),
          ),
        ],
      ),
    );
  }

Use the associated ArcGISLocalSceneViewController to configure the scene and other data, such as ArcGISScene.operationalLayers and ArcGISScene.environment.

Use the controller to interact with the scene, such as by using GeoViewController.setViewpoint or GeoViewController.identifyLayer.

Inheritance

Constructors

ArcGISLocalSceneView({required ArcGISLocalSceneViewController controllerProvider(), void onLocalSceneViewReady()?, void onTap(Offset localPosition)?, void onLongPressEnd(Offset localPosition)?, Key? key})
Creates an ArcGIS local scene view.
const

Properties

controllerProvider ArcGISLocalSceneViewController Function()
Called when this ArcGISLocalSceneView needs an ArcGISLocalSceneViewController to associate with itself.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onLocalSceneViewReady → void Function()?
Called when the scene view is ready to be used.
final
onLongPressEnd → void Function(Offset localPosition)?
Called when the user completes a long press gesture on the scene view.
final
onTap → void Function(Offset localPosition)?
Called when the user taps on the scene view.
final
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<ArcGISLocalSceneView>
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, int wrapWidth = 65}) 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

Static Methods

createController() ArcGISLocalSceneViewController
Creates an ArcGISLocalSceneViewController for use with an ArcGISLocalSceneView.