pigeon_copy method

  1. @override
CNPostalAddress pigeon_copy()

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
CNPostalAddress pigeon_copy() {
  return CNPostalAddress.pigeon_detached(
    pigeon_binaryMessenger: pigeon_binaryMessenger,
    pigeon_instanceManager: pigeon_instanceManager,
    street: street,
    city: city,
    state: state,
    postalCode: postalCode,
    country: country,
    isoCountryCode: isoCountryCode,
    subAdministrativeArea: subAdministrativeArea,
    subLocality: subLocality,
    observeValue: observeValue,
  );
}