Flutter Engine
FlutterEngineDartObject Struct Reference

#include <embedder.h>

Public Attributes

FlutterEngineDartObjectType type
 
union {
   bool   bool_value
 
   int32_t   int32_value
 
   int64_t   int64_value
 
   double   double_value
 
   const char *   string_value
 
   const FlutterEngineDartBuffer *   buffer_value
 
}; 
 

Detailed Description

This struct specifies the native representation of a Dart object that can be sent via a send port to any isolate in the VM that has the corresponding receive port.

All fields in this struct are copied out in the call to FlutterEnginePostDartObject and the caller is free to reuse or collect this struct after that call.

Definition at line 1278 of file embedder.h.

Member Data Documentation

◆ @19

union { ... }

◆ bool_value

bool FlutterEngineDartObject::bool_value

Definition at line 1281 of file embedder.h.

◆ buffer_value

const FlutterEngineDartBuffer* FlutterEngineDartObject::buffer_value

Definition at line 1289 of file embedder.h.

Referenced by FlutterEnginePostDartObject().

◆ double_value

double FlutterEngineDartObject::double_value

Definition at line 1284 of file embedder.h.

◆ int32_value

int32_t FlutterEngineDartObject::int32_value

Definition at line 1282 of file embedder.h.

◆ int64_value

int64_t FlutterEngineDartObject::int64_value

Definition at line 1283 of file embedder.h.

◆ string_value

const char* FlutterEngineDartObject::string_value

A null terminated string. This string will be copied by the VM in the call to FlutterEnginePostDartObject and must be collected by the embedder after that call is made.

Definition at line 1288 of file embedder.h.

Referenced by FlutterEnginePostDartObject().

◆ type

FlutterEngineDartObjectType FlutterEngineDartObject::type

Definition at line 1279 of file embedder.h.

Referenced by FlutterEnginePostDartObject(), and flutter::testing::TEST_F().


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