NOverlayImage class
지도에서 사용할 수 있는 이미지 객체입니다.
에셋, 파일, byteArray, 위젯을 통해 생성할 수 있습니다.
메모리의 효율적인 사용을 위해, 한번 생성한 객체는 되도록 재사용해주세요.
Constructors
- NOverlayImage.fromAssetImage(String assetName)
-
이미지 에셋으로 지도에서 사용할 이미지를 생성합니다. (jpg, png supported)
const
- NOverlayImage.fromFile(File file)
- 이미지 파일으로 지도에서 사용할 이미지를 생성합니다. (jpg, png supported)
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toNPayload(
) → NPayload -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromByteArray(
Uint8List imageBytes) → Future< NOverlayImage> - ByteArray로 지도에서 사용할 이미지를 생성합니다. (캐시를 사용합니다)
-
fromWidget(
{required Widget widget, required Size size, required BuildContext context}) → Future< NOverlayImage> - 위젯을 지도의 이미지로 생성합니다. (캐시를 사용합니다)