Insets constructor

Insets(
  1. {required double left,
  2. required double right,
  3. required double top,
  4. required double bottom}
)

Create an immutable insets object.

Parameters:

  • left — The inset from the left edge in DIPs.
  • right — The inset from the right edge in DIPs.
  • top — The inset from the top edge in DIPs.
  • bottom — The inset from the bottom edge in DIPs.

Implementation

factory Insets(
    {required double left,
    required double right,
    required double top,
    required double bottom}) {
  _initializeArcGISEnvironmentIfNeeded();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_Insets_create(
        left, right, top, bottom, errorHandler);
  });
  return Insets._withHandle(handle);
}