Flutter Engine
The Flutter Engine
|
Represents the 2 code paths available when calling |SyncSwitch::Execute|. More...
#include <sync_switch.h>
Public Member Functions | |
Handlers & | SetIfTrue (const std::function< void()> &handler) |
Sets the handler that will be executed if the |SyncSwitch| is true. More... | |
Handlers & | SetIfFalse (const std::function< void()> &handler) |
Sets the handler that will be executed if the |SyncSwitch| is false. More... | |
Public Attributes | |
std::function< void()> | true_handler = [] {} |
std::function< void()> | false_handler = [] {} |
Represents the 2 code paths available when calling |SyncSwitch::Execute|.
Definition at line 35 of file sync_switch.h.
SyncSwitch::Handlers & fml::SyncSwitch::Handlers::SetIfFalse | ( | const std::function< void()> & | handler | ) |
Sets the handler that will be executed if the |SyncSwitch| is false.
Definition at line 15 of file sync_switch.cc.
SyncSwitch::Handlers & fml::SyncSwitch::Handlers::SetIfTrue | ( | const std::function< void()> & | handler | ) |
Sets the handler that will be executed if the |SyncSwitch| is true.
Definition at line 9 of file sync_switch.cc.
std::function<void()> fml::SyncSwitch::Handlers::false_handler = [] {} |
Definition at line 43 of file sync_switch.h.
std::function<void()> fml::SyncSwitch::Handlers::true_handler = [] {} |
Definition at line 42 of file sync_switch.h.