Flutter Engine
flutter::DartProject Class Reference

#include <dart_project.h>

Public Member Functions

 DartProject (const std::wstring &assets_path, const std::wstring &icu_data_path, const std::wstring &aot_library_path)
 
 DartProject (const std::wstring &path)
 
 ~DartProject ()=default
 
void set_dart_entrypoint_arguments (std::vector< std::string > arguments)
 
const std::vector< std::string > & dart_entrypoint_arguments () const
 

Friends

class FlutterEngine
 
class FlutterViewController
 
class DartProjectTest
 

Detailed Description

Definition at line 14 of file dart_project.h.

Constructor & Destructor Documentation

◆ DartProject() [1/2]

flutter::DartProject::DartProject ( const std::wstring &  assets_path,
const std::wstring &  icu_data_path,
const std::wstring &  aot_library_path 
)
inlineexplicit

Definition at line 24 of file dart_project.h.

26  {
27  assets_path_ = assets_path;
28  icu_data_path_ = icu_data_path;
29  aot_library_path_ = aot_library_path;
30  }

◆ DartProject() [2/2]

flutter::DartProject::DartProject ( const std::wstring &  path)
inlineexplicit

Definition at line 41 of file dart_project.h.

References ~DartProject().

41  {
42  assets_path_ = path + L"\\flutter_assets";
43  icu_data_path_ = path + L"\\icudtl.dat";
44  aot_library_path_ = path + L"\\app.so";
45  }
DEF_SWITCHES_START snapshot asset path
Definition: switches.h:32

◆ ~DartProject()

flutter::DartProject::~DartProject ( )
default

Referenced by DartProject().

Member Function Documentation

◆ dart_entrypoint_arguments()

const std::vector<std::string>& flutter::DartProject::dart_entrypoint_arguments ( ) const
inline

Definition at line 58 of file dart_project.h.

Referenced by flutter::FlutterEngine::FlutterEngine(), and flutter::TEST_F().

58  {
59  return dart_entrypoint_arguments_;
60  }

◆ set_dart_entrypoint_arguments()

void flutter::DartProject::set_dart_entrypoint_arguments ( std::vector< std::string >  arguments)
inline

Definition at line 52 of file dart_project.h.

Referenced by flutter::TEST(), and flutter::TEST_F().

52  {
53  dart_entrypoint_arguments_ = std::move(arguments);
54  }

Friends And Related Function Documentation

◆ DartProjectTest

friend class DartProjectTest
friend

Definition at line 69 of file dart_project.h.

◆ FlutterEngine

friend class FlutterEngine
friend

Definition at line 67 of file dart_project.h.

◆ FlutterViewController

friend class FlutterViewController
friend

Definition at line 68 of file dart_project.h.


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