pigeon_copy method

Instantiates and returns a functionally identical object to oneself.

Outside of tests, this method should only ever be called by PigeonInstanceManager.

Subclasses should always override their parent's implementation of this method.

Implementation

@override
CLLocationSourceInformation pigeon_copy() {
  return CLLocationSourceInformation.pigeon_detached(
    pigeon_binaryMessenger: pigeon_binaryMessenger,
    pigeon_instanceManager: pigeon_instanceManager,
    isProducedByAccessory: isProducedByAccessory,
    isSimulatedBySoftware: isSimulatedBySoftware,
    observeValue: observeValue,
  );
}