fromAsset static method

File fromAsset(
  1. Context context,
  2. String path
)

Файл из asset-ов.

  • Parameter path: Путь относительно корневой директории asset-ов.

Implementation

static File fromAsset(
  Context context,
  String path
)  {
  var _a0 = context._copyFromDartTo_CContext();
  var _a1 = path._copyFromDartTo_CString();
  _CFile res = _CFile_S_fromAsset_CContext_CString(_a0, _a1);
  _a1._releaseIntermediate();
  _a0._releaseIntermediate();
  final t = res._toDart();
  res._releaseIntermediate();
  return t;
}