isPositiveButton

Deprecated

use [DialogEvent::type] instead

Replace with

type == DialogEventType.ButtonPositive