toReasonString method
Implementation
String toReasonString() {
switch (this) {
case ShopLivePreviewCloseReason.closeButton:
return 'close_button';
case ShopLivePreviewCloseReason.swipeOut:
return 'swipe_out';
case ShopLivePreviewCloseReason.broadcastEnded:
return 'broadcast_ended';
case ShopLivePreviewCloseReason.programmatic:
return 'programmatic';
case ShopLivePreviewCloseReason.unknown:
return 'unknown';
}
}