|
19 | 19 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
20 | 20 | //
|
21 | 21 |
|
22 |
| -/// {@template error_handling} |
23 |
| -/// This method redirects calls to the LINE SDK for the relevant native platform (iOS or Android). |
24 |
| -/// If an error happens in the native platform, a [PlatformException] is thrown. See |
25 |
| -/// [PlatformException.code] and [PlatformException.message] for error details. |
26 |
| -/// |
27 |
| -/// The LINE SDK implementation differs between iOS and Android, which means error codes and messages |
28 |
| -/// can also be different. For platform-specific error information, see |
29 |
| -/// [LineSDKError](https://developers.line.biz/en/reference/ios-sdk-swift/Enums/LineSDKError.html) |
30 |
| -/// (iOS) and |
31 |
| -/// [LineApiError](https://developers.line.biz/en/reference/android-sdk/reference/com/linecorp/linesdk/LineApiError.html) |
32 |
| -/// (Android). |
33 |
| -/// {@endtemplate} |
34 |
| -
|
35 | 22 | part of flutter_line_sdk;
|
36 | 23 |
|
37 | 24 | /// A general manager class for LINE SDK login features.
|
@@ -95,7 +82,18 @@ class LineSDK {
|
95 | 82 | /// to ask the user to add your bot as a friend. To do so, create a [LoginOption] object and pass
|
96 | 83 | /// it to the [option] parameter.
|
97 | 84 | ///
|
98 |
| - /// {@macro error_handling} |
| 85 | + /// {@template error_handling} |
| 86 | + /// This method redirects calls to the LINE SDK for the relevant native platform (iOS or Android). |
| 87 | + /// If an error happens in the native platform, a [PlatformException] is thrown. See |
| 88 | + /// [PlatformException.code] and [PlatformException.message] for error details. |
| 89 | + /// |
| 90 | + /// The LINE SDK implementation differs between iOS and Android, which means error codes and messages |
| 91 | + /// can also be different. For platform-specific error information, see |
| 92 | + /// [LineSDKError](https://developers.line.biz/en/reference/ios-sdk-swift/Enums/LineSDKError.html) |
| 93 | + /// (iOS) and |
| 94 | + /// [LineApiError](https://developers.line.biz/en/reference/android-sdk/reference/com/linecorp/linesdk/LineApiError.html) |
| 95 | + /// (Android). |
| 96 | + /// {@endtemplate} |
99 | 97 | Future<LoginResult> login(
|
100 | 98 | {List<String> scopes = const ["profile"], LoginOption option}) async {
|
101 | 99 | String result = await channel.invokeMethod('login', <String, dynamic>{
|
|
0 commit comments