Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix final nits
  • Loading branch information
mvanbeusekom committed Nov 12, 2021
commit 98eb2368af9dcee3912e39116ecd43a1ad7d92a4
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ class WebViewController {
Future<void> loadFile(
String absoluteFilePath,
) {
assert(absoluteFilePath.isNotEmpty);
return _webViewPlatformController.loadFile(absoluteFilePath);
}

Expand All @@ -326,6 +327,7 @@ class WebViewController {
String html, {
String? baseUrl,
}) {
assert(html.isNotEmpty);
return _webViewPlatformController.loadHtmlString(
html,
baseUrl: baseUrl,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -615,14 +615,14 @@ - (void)updateUserAgent:(NSString*)userAgent {
}

/**
* Validates if the given `argument` is a non-null non-empty string.
* Validates if the given `argument` is a non-null, non-empty string.
*
* @param argument The argument that should be validated.
* @param errorDetails An optional NSString variable which will contain a detailed error message in
* case the supplied argument is not valid.
* @return `true` if the given `argument` is a valid non-null, non-empty string; otherwise `false`.
* @return `YES` if the given `argument` is a valid non-null, non-empty string; otherwise `NO`.
*/
+ (bool)isValidStringArgument:(id)argument withErrorMessage:(NSString**)errorDetails {
+ (BOOL)isValidStringArgument:(id)argument withErrorMessage:(NSString**)errorDetails {
if (!argument) {
if (errorDetails) {
*errorDetails = @"Argument is nil.";
Expand Down