Flutter Engine
flutter::DartIsolate::Flags Class Reference

#include <dart_isolate.h>

Public Member Functions

 Flags ()
 
 Flags (const Dart_IsolateFlags *flags)
 
 ~Flags ()
 
void SetNullSafetyEnabled (bool enabled)
 
Dart_IsolateFlags Get () const
 

Detailed Description

Definition at line 64 of file dart_isolate.h.

Constructor & Destructor Documentation

◆ Flags() [1/2]

flutter::DartIsolate::Flags::Flags ( )

Definition at line 56 of file dart_isolate.cc.

56 : Flags(nullptr) {}

◆ Flags() [2/2]

flutter::DartIsolate::Flags::Flags ( const Dart_IsolateFlags *  flags)
explicit

Definition at line 58 of file dart_isolate.cc.

References flutter::flags, and ~Flags().

58  {
59  if (flags) {
60  flags_ = *flags;
61  } else {
62  ::Dart_IsolateFlagsInitialize(&flags_);
63  }
64 }
DEF_SWITCHES_START snapshot asset Path to the directory containing the four files specified by VmSnapshotInstructions and IsolateSnapshotInstructions vm snapshot The VM instructions snapshot that will be memory mapped as read and executable SnapshotAssetPath must be present isolate snapshot The isolate instructions snapshot that will be memory mapped as read and executable SnapshotAssetPath must be present icu symbol Prefix for the symbols representing ICU data linked into the Flutter library dart flags
Definition: switches.h:66

◆ ~Flags()

flutter::DartIsolate::Flags::~Flags ( )
default

Referenced by Flags().

Member Function Documentation

◆ Get()

Dart_IsolateFlags flutter::DartIsolate::Flags::Get ( ) const

Definition at line 72 of file dart_isolate.cc.

Referenced by flutter::DartIsolate::CreateRunningRootIsolate().

72  {
73  return flags_;
74 }

◆ SetNullSafetyEnabled()

void flutter::DartIsolate::Flags::SetNullSafetyEnabled ( bool  enabled)

Definition at line 68 of file dart_isolate.cc.

Referenced by flutter::DartIsolate::CreateRunningRootIsolate().

68  {
69  flags_.null_safety = enabled;
70 }

The documentation for this class was generated from the following files: