LineNotify class
The class that wraps the Line Notify API.
Using this class is the easiest and most intuitive way to use the Line Notify API from the Dart language.
This wrapping class is very easy to use. Please refer to the following example.
How To Use
import 'package:line_notify_d/line_notify_d.dart';
class DemoLineNotify {
void main() async {
final HttpResponse response = await LineNotify.from(
token: Token.from(
value: 'Set your Line Notify Token here'))
.send(message: 'Set message you want to send here');
print(response.statusCode); // => 200
print(response.body); // => {status: 200, message: ok}
}
}
Constructors
- LineNotify.from({required Token token})
- Returns the new instance of LineNotify based on token passed as an argument.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
{required String message}) → Future< HttpResponse> -
Sends
message
and returns the http response. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited