Torch class

Welcome Torch library world.

I used torch implement to native application until now. think to torch implement How about it apply to Flutter people.

so I made this Torchx Library :)

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
isTorched Future<bool>
isTorched
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
dispose exit your application include dispose method before define super.dispose method
override
flashOff() → void
flashOff device Torch(FlashLight) 'OFF' Function
override
flashOn() → void
flashOn device Torch(FlashLight) 'ON' Function
override
flashOnLevel({required double strengthLevel}) → void
flashOnLevel device Torch(FlashLight) 'ON' with control strengthLevel(torch level)
override
getLevel() Future<double>
getLevel you can get current device torch's strengthLevel(torch level, flashlight level)
override
getPlatformVersion() Future<String?>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setLevel({required double strengthLevel}) → void
setLevel you can put device's torch level before flashOn function effect torch level
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance Torch
no setter
maxLevel double
maxLevel Android = 5.0 (Integer) IOS = 1.0 (Float)
final
minLevel double
minLevel Android = 1.0 (Integer) IOS = 0.1 (Float)
final