Skip to content

Commit 7e46052

Browse files
committed
Fix template doc rendering
1 parent dd51498 commit 7e46052

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

lib/src/line_sdk.dart

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,6 @@
1919
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2020
//
2121

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-
3522
part of flutter_line_sdk;
3623

3724
/// A general manager class for LINE SDK login features.
@@ -95,7 +82,18 @@ class LineSDK {
9582
/// to ask the user to add your bot as a friend. To do so, create a [LoginOption] object and pass
9683
/// it to the [option] parameter.
9784
///
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}
9997
Future<LoginResult> login(
10098
{List<String> scopes = const ["profile"], LoginOption option}) async {
10199
String result = await channel.invokeMethod('login', <String, dynamic>{

0 commit comments

Comments
 (0)