toPointer method

  1. @override
void toPointer(
  1. Pointer<SdlNotificationAction> pointer
)
override

Implementation

@override
void toPointer(Pointer<SdlNotificationAction> pointer) {
  pointer.ref.button.type = type;
  if (actionId.isNotEmpty) {
    pointer.ref.button.actionId = actionId.toNativeUtf8();
  }
  if (actionLabel.isNotEmpty) {
    pointer.ref.button.actionLabel = actionLabel.toNativeUtf8();
  }
}