on_attach_or_detach property

void Function(bool isAttach, double offset) on_attach_or_detach
getter/setter pair

listen attach or detach

Implementation

void Function(bool isAttach, double offset) on_attach_or_detach =
    (bool isAttach, double offset) {};